Skip to content

Commit

Permalink
RF: use "if" not "elif" after a statement with return in the body
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Feb 3, 2025
1 parent fa60dfd commit 0fe489a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def _check_attempts_and_sleep(
exc,
)
return None
elif (sleep_amount := get_retry_after(exc.response)) is not None:
if (sleep_amount := get_retry_after(exc.response)) is not None:
lgr.debug(
"%s - download failed due to response %d with "
"Retry-After=%d: %s, will sleep and retry",
Expand Down

0 comments on commit 0fe489a

Please sign in to comment.