From bda83e7943384ad12b461b6de32417b69779da20 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 10 Sep 2026 09:43:04 -0300 Subject: [PATCH] QTZPOC-20 QTZPOC-20: Remove redundant parentheses from BaseException catch clauses --- laborious/workflows/import_model.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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}