chore(linter): auto fix by pre-commit hooks
This commit is contained in:
@@ -30,10 +30,8 @@ async def get_fetcher() -> OriginFetcher:
|
|||||||
try:
|
try:
|
||||||
await fetcher.ensure_valid_access_token()
|
await fetcher.ensure_valid_access_token()
|
||||||
except TokenAuthError as exc:
|
except TokenAuthError as exc:
|
||||||
logger.warning(
|
logger.warning(f"Failed to refresh fetcher access token during startup: {exc}. Will retry on demand.")
|
||||||
f"Failed to refresh fetcher access token during startup: {exc}. Will retry on demand."
|
except Exception as exc:
|
||||||
)
|
|
||||||
except Exception as exc: # noqa: BLE001
|
|
||||||
logger.exception("Unexpected error while initializing fetcher access token", exc_info=exc)
|
logger.exception("Unexpected error while initializing fetcher access token", exc_info=exc)
|
||||||
return fetcher
|
return fetcher
|
||||||
|
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class BaseFetcher:
|
|||||||
f"HTTP error while requesting access token for client {self.client_id}"
|
f"HTTP error while requesting access token for client {self.client_id}"
|
||||||
f" (status: {exc.response.status_code}, attempt {attempt}/{retries})"
|
f" (status: {exc.response.status_code}, attempt {attempt}/{retries})"
|
||||||
)
|
)
|
||||||
except Exception as exc: # noqa: BLE001
|
except Exception as exc:
|
||||||
last_error = exc
|
last_error = exc
|
||||||
logger.exception(
|
logger.exception(
|
||||||
f"Unexpected error while requesting access token for client {self.client_id}"
|
f"Unexpected error while requesting access token for client {self.client_id}"
|
||||||
|
|||||||
Reference in New Issue
Block a user