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,6 +61,9 @@ def create_symlinks(d):
|
|||
else:
|
||||
order.extend(data["pages"][work]["images"].values())
|
||||
if "prev" in data["pages"][work]:
|
||||
if data["pages"][work]["prev"] == work:
|
||||
work = None
|
||||
else:
|
||||
work = data["pages"][work]["prev"]
|
||||
else:
|
||||
work = None
|
||||
|
|
Loading…
Reference in a new issue