Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp committed Dec 13, 2024
1 parent 6d6483a commit 3a9c35b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def progress_retrieve(url, file, disable=False):
t.update(len(data))


def retry(retries: int = 3, delay=1) -> Callable:
def retry(func: Callable) -> Callable:
"""
Retry decorator to run retry function on specific exceptions, before raising them.
Expand All @@ -440,6 +440,8 @@ def retry(retries: int = 3, delay=1) -> Callable:
callable
A decorator function that can be used to wrap the function to be retried.
"""
retries = 3
delay = 5

def decorator(func):
@wraps(func)
Expand Down

0 comments on commit 3a9c35b

Please sign in to comment.