diff --git a/laborious/workflows/import_model.py b/laborious/workflows/import_model.py index 4c63c41..711aef4 100644 --- a/laborious/workflows/import_model.py +++ b/laborious/workflows/import_model.py @@ -344,9 +344,7 @@ class ImportModel: start_to_close_timeout=STATUS_WRITE_TIMEOUT, schedule_to_close_timeout=STATUS_WRITE_ENVELOPE, ) - except ( - BaseException - ) as error: # the outcome stands even when it cannot be written + except BaseException as error: # the outcome stands even when it cannot be written if is_cancelled_exception(error): raise await self._report_status_write_failure( @@ -444,9 +442,7 @@ class ImportModel: retry_policy=retry_policy, start_to_close_timeout=CLEANUP_TIMEOUT, ) - except ( - BaseException - ) as error: # cleanup never replaces the failure that brought us here + except BaseException as error: # cleanup never replaces the failure that brought us here if is_cancelled_exception(error): raise return {'cleaned': False}