Skip to content

Commit

Permalink
Improve code and error chaining
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
hagenw and sourcery-ai[bot] authored Nov 15, 2024
1 parent 8be6b93 commit 56d7758
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions audbackend/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ def call_function_on_backend(
except Exception as ex:
if suppress_backend_errors:
return fallback_return_value
else:
if retry + 1 == retries:
raise BackendError(ex)
time.sleep(0.05)
if retry + 1 == retries:
raise BackendError(ex) from ex
time.sleep(0.05)


def check_path(
Expand Down

0 comments on commit 56d7758

Please sign in to comment.