Fix retry loop not breaking after successful try!

master
Ethan Dalool 2020-09-06 21:31:46 -07:00
parent 4a61d820b3
commit 83d5a8e70e
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ def _pagination_core(url, params, dummy_type, lower=None, upper=None):
traceback.print_exc()
print('Retrying in 5...')
time.sleep(5)
else:
break
batch_ids = setify(batch)
if len(batch_ids) == 0 or batch_ids.issubset(prev_batch_ids):