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