Skip to content

Commit

Permalink
Make flake8 happy with line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
bgreen-litl committed Oct 5, 2022
1 parent 32e9223 commit e7677e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backoff/_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ async def retry(*args, **kwargs):
await _call_handlers(on_giveup, **details, exception=e)
raise e

await _call_handlers(on_backoff, **details, wait=seconds, exception=e)
await _call_handlers(on_backoff, **details, wait=seconds,
exception=e)

# Note: there is no convenient way to pass explicit event
# loop to decorator, so here we assume that either default
Expand Down
3 changes: 2 additions & 1 deletion backoff/_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def retry(*args, **kwargs):
_call_handlers(on_giveup, **details, exception=e)
raise e

_call_handlers(on_backoff, **details, wait=seconds, exception=e)
_call_handlers(on_backoff, **details, wait=seconds,
exception=e)

time.sleep(seconds)
else:
Expand Down

0 comments on commit e7677e8

Please sign in to comment.