diff --git a/schulcloud/h5p/upload.py b/schulcloud/h5p/upload.py index 1a82897e..6e4ac1db 100644 --- a/schulcloud/h5p/upload.py +++ b/schulcloud/h5p/upload.py @@ -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: