Skip to content

Commit

Permalink
fixed bug in exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gbecigneul committed Jan 13, 2025
1 parent d82b23c commit cbd2a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backoff/_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async def retry(*args, **kwargs):

try:
ret = await target(*args, **kwargs)
except exception as e:
except Exception as e:
giveup_result = await giveup(e)
max_tries_exceeded = (tries == max_tries_value)
max_time_exceeded = (max_time_value is not None and
Expand Down

0 comments on commit cbd2a55

Please sign in to comment.