diff --git a/backoff/_async.py b/backoff/_async.py index 82fd477..6a1844a 100644 --- a/backoff/_async.py +++ b/backoff/_async.py @@ -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