Skip to content

Commit

Permalink
Add exception in _get_file()
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Oct 22, 2024
1 parent 785305a commit 3f0a4b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions audbackend/core/backend/minio.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def _get_file(
dst_fp.write(data)
dst_size += n_data
pbar.update(n_data)
except Exception as e:
raise RuntimeError(f"Error downloading file: {e}")
finally:
response.close()
response.release_conn()
Expand Down

0 comments on commit 3f0a4b0

Please sign in to comment.