Fix retry loop not breaking after successful try!
This commit is contained in:
parent
4a61d820b3
commit
83d5a8e70e
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,8 @@ def _pagination_core(url, params, dummy_type, lower=None, upper=None):
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
print('Retrying in 5...')
|
print('Retrying in 5...')
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
batch_ids = setify(batch)
|
batch_ids = setify(batch)
|
||||||
if len(batch_ids) == 0 or batch_ids.issubset(prev_batch_ids):
|
if len(batch_ids) == 0 or batch_ids.issubset(prev_batch_ids):
|
||||||
|
|
Loading…
Reference in a new issue