From aa9387c53a7af4fbbb579abc9f5208fab869b410 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 03:09:01 +0000 Subject: [PATCH] chore(linter): auto fix by pre-commit hooks --- app/dependencies/fetcher.py | 6 ++---- app/fetcher/_base.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/dependencies/fetcher.py b/app/dependencies/fetcher.py index c1ea795..5bf7ea5 100644 --- a/app/dependencies/fetcher.py +++ b/app/dependencies/fetcher.py @@ -30,10 +30,8 @@ async def get_fetcher() -> OriginFetcher: try: await fetcher.ensure_valid_access_token() except TokenAuthError as exc: - logger.warning( - f"Failed to refresh fetcher access token during startup: {exc}. Will retry on demand." - ) - except Exception as exc: # noqa: BLE001 + logger.warning(f"Failed to refresh fetcher access token during startup: {exc}. Will retry on demand.") + except Exception as exc: logger.exception("Unexpected error while initializing fetcher access token", exc_info=exc) return fetcher diff --git a/app/fetcher/_base.py b/app/fetcher/_base.py index b0cbe27..681ff5c 100644 --- a/app/fetcher/_base.py +++ b/app/fetcher/_base.py @@ -204,7 +204,7 @@ class BaseFetcher: f"HTTP error while requesting access token for client {self.client_id}" f" (status: {exc.response.status_code}, attempt {attempt}/{retries})" ) - except Exception as exc: # noqa: BLE001 + except Exception as exc: last_error = exc logger.exception( f"Unexpected error while requesting access token for client {self.client_id}"