Fix a potential infinite loop condition, that causes the script to consume all ram on the box and get oom-killed.
This commit is contained in:
parent
ea2bad5500
commit
f76061e138
1 changed files with 4 additions and 1 deletions
|
@ -61,7 +61,10 @@ def create_symlinks(d):
|
||||||
else:
|
else:
|
||||||
order.extend(data["pages"][work]["images"].values())
|
order.extend(data["pages"][work]["images"].values())
|
||||||
if "prev" in data["pages"][work]:
|
if "prev" in data["pages"][work]:
|
||||||
work = data["pages"][work]["prev"]
|
if data["pages"][work]["prev"] == work:
|
||||||
|
work = None
|
||||||
|
else:
|
||||||
|
work = data["pages"][work]["prev"]
|
||||||
else:
|
else:
|
||||||
work = None
|
work = None
|
||||||
order.reverse()
|
order.reverse()
|
||||||
|
|
Loading…
Reference in a new issue