Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/pimetheus/integrations/publish/bluesky/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

import structlog
from atproto import Client
from atproto_client.exceptions import InvokeTimeoutError
from atproto_client.exceptions import InvokeTimeoutError as AtprotoInvokeTimeoutError
from atproto_client.exceptions import NetworkError as AtprotoNetworkError
from httpx import NetworkError

from pimetheus.utils.config import Settings
Expand Down Expand Up @@ -53,7 +54,7 @@ def execute_with_retry(self, function: Callable[[], T], *, action: str) -> T:
logger.info("Executing API call", action=action, attempt=attempt + 1)
try:
return function()
except (InvokeTimeoutError, NetworkError) as e:
except (AtprotoInvokeTimeoutError, AtprotoNetworkError) as e:
logger.warning("API call failed", action=action)
last_exception = e

Expand Down
Loading