Skip to content

Commit

Permalink
change errorhandling at s3 download
Browse files Browse the repository at this point in the history
  • Loading branch information
SteKrause committed Apr 27, 2023
1 parent 99b4951 commit 9dab3bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schulcloud/h5p/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def retry_function(function, params: Dict, max_retries: int):
try:
print(f'>>>>try2 {function}')
function(**params)
break
except (ResponseStreamingError, ConnectionResetError, ProtocolError) as error:
print(f'Got Error1: {type(error)}')
if retries == max_retries - 1:
Expand Down

0 comments on commit 9dab3bd

Please sign in to comment.