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,
|
start_to_close_timeout=STATUS_WRITE_TIMEOUT,
|
||||||
schedule_to_close_timeout=STATUS_WRITE_ENVELOPE,
|
schedule_to_close_timeout=STATUS_WRITE_ENVELOPE,
|
||||||
)
|
)
|
||||||
except (
|
except BaseException as error: # the outcome stands even when it cannot be written
|
||||||
BaseException
|
|
||||||
) as error: # the outcome stands even when it cannot be written
|
|
||||||
if is_cancelled_exception(error):
|
if is_cancelled_exception(error):
|
||||||
raise
|
raise
|
||||||
await self._report_status_write_failure(
|
await self._report_status_write_failure(
|
||||||
@@ -444,9 +442,7 @@ class ImportModel:
|
|||||||
retry_policy=retry_policy,
|
retry_policy=retry_policy,
|
||||||
start_to_close_timeout=CLEANUP_TIMEOUT,
|
start_to_close_timeout=CLEANUP_TIMEOUT,
|
||||||
)
|
)
|
||||||
except (
|
except BaseException as error: # cleanup never replaces the failure that brought us here
|
||||||
BaseException
|
|
||||||
) as error: # cleanup never replaces the failure that brought us here
|
|
||||||
if is_cancelled_exception(error):
|
if is_cancelled_exception(error):
|
||||||
raise
|
raise
|
||||||
return {'cleaned': False}
|
return {'cleaned': False}
|
||||||
|
|||||||
Reference in New Issue
Block a user