style: apply Ruff formatting
All checks were successful
Test blackout notifier / test (push) Successful in 4s
Hourly blackout check / check (push) Successful in 5s

This commit is contained in:
Meghdad
2026-07-22 03:20:01 +03:30
parent 42687ee651
commit ea03d84901
4 changed files with 7 additions and 16 deletions

View File

@@ -114,14 +114,11 @@ class EitaaClient:
try:
body = response.json()
except requests.JSONDecodeError as error:
raise ExternalServiceError(
f"Eitaa returned invalid JSON for chat {chat_id}"
) from error
raise ExternalServiceError(f"Eitaa returned invalid JSON for chat {chat_id}") from error
if not isinstance(body, dict) or body.get("ok") is not True:
description = body.get("description") if isinstance(body, dict) else None
raise ExternalServiceError(
f"Eitaa rejected the message for chat {chat_id}: "
f"{description or 'unknown error'}"
f"Eitaa rejected the message for chat {chat_id}: {description or 'unknown error'}"
)