Skip to content

Commit

Permalink
explicitly handle @staticmethod type-error
Browse files Browse the repository at this point in the history
  • Loading branch information
wleightond committed Jul 19, 2023
1 parent cd0a409 commit e335eb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion canarytokens/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def inner(f: Callable) -> Callable:
@wraps(f)
def wrapper(*args, **kwargs): # type: ignore
for interval in retry_intervals:
res = f(*args, **kwargs)
try:
res = f(*args, **kwargs)
except TypeError:
pass
if retry_if(*res):
# Blocking sleep!
time.sleep(interval)
Expand Down

0 comments on commit e335eb4

Please sign in to comment.