some fixes

This commit is contained in:
2026-08-07 10:04:31 +02:00
parent 6dd541b798
commit c7e575ff9b
12 changed files with 65 additions and 14 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ def load(state_path: str):
log.info("Keine vorherige State-Datei gefunden (%s) - Erstlauf.", state_path)
return None
try:
with open(state_path, "r") as f:
with open(state_path) as f:
data = json.load(f)
return data.get("last_ip")
except (json.JSONDecodeError, OSError) as exc: