Merge pull request #300 from garbled1/infinite_loop_bad
Fix a potential infinite loop condition
This commit is contained in:
commit
e2b3beac2e
1 changed files with 4 additions and 1 deletions
|
@ -61,6 +61,9 @@ 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]:
|
||||||
|
if data["pages"][work]["prev"] == work:
|
||||||
|
work = None
|
||||||
|
else:
|
||||||
work = data["pages"][work]["prev"]
|
work = data["pages"][work]["prev"]
|
||||||
else:
|
else:
|
||||||
work = None
|
work = None
|
||||||
|
|
Loading…
Reference in a new issue