Skip to content

Commit

Permalink
Add retries
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Aug 24, 2023
1 parent 6e148d7 commit f0c7c0d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions resources/init_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@
break

except Exception as exc:
if 'timed out' in str(exc):
print('WARNING: Timed out, trying again...')
time.sleep(30)
tries -= 1
else:
raise
print(f'WARNING: {exc}')
time.sleep(30)
tries -= 1

0 comments on commit f0c7c0d

Please sign in to comment.