style: apply Ruff formatting
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
+2 -5
View File
@@ -88,16 +88,13 @@ def _bill_chat_map(raw_routes: str) -> dict[str, tuple[str, ...]]:
malformed.append(route)
continue
if not bill_id.isdecimal():
raise ConfigurationError(
f"BILL_CHAT_MAP bill IDs must be decimal: {bill_id}"
)
raise ConfigurationError(f"BILL_CHAT_MAP bill IDs must be decimal: {bill_id}")
chat_ids = routes.setdefault(bill_id, [])
if chat_id not in chat_ids:
chat_ids.append(chat_id)
if malformed:
raise ConfigurationError(
"BILL_CHAT_MAP entries must use BILL_ID:CHAT_ID format: "
+ ", ".join(malformed)
"BILL_CHAT_MAP entries must use BILL_ID:CHAT_ID format: " + ", ".join(malformed)
)
if not routes:
raise ConfigurationError("BILL_CHAT_MAP must contain at least one route")