Skip to content

Commit 08e586b

Browse files
committed
fix(ruff): split import in qsl_watchdog.py
1 parent 17df140 commit 08e586b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/qsl_watchdog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def _telegram_alert(message: str) -> bool:
2323
chat_id = os.environ.get("GLOBAL_TELEGRAM_CHAT_ID", "").strip()
2424
if not token or not chat_id:
2525
return False
26-
import json, urllib.request
26+
import json
27+
import urllib.request
2728
req = urllib.request.Request(
2829
f"https://api.telegram.org/bot{token}/sendMessage",
2930
data=json.dumps({"chat_id": chat_id, "text": message}).encode(),

0 commit comments

Comments
 (0)