Skip to content

Commit

Permalink
Fix the retry function X'D
Browse files Browse the repository at this point in the history
I KNEW 1000 coin flips wouldn't turn out so badly XD
  • Loading branch information
bobcatfish committed Feb 24, 2022
1 parent 3a71cdc commit c9dfe8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def wrapper_retry(*args, **kwargs):
for i in range(retries+1):
try:
func(*args, **kwargs)
return
except Exception as e:
if i == retries:
raise Exception(
Expand Down

0 comments on commit c9dfe8d

Please sign in to comment.