mirror of
https://github.com/skoelle/dyndns-updater.git
synced 2026-09-18 00:20:24 +00:00
some fixes
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user