QTZPOC-20
QTZPOC-20: Remove redundant parentheses from BaseException catch clauses
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user