Log node object on snapshot update failure (#62)

This commit is contained in:
l5y
2025-09-15 14:34:56 +02:00
committed by GitHub
parent 580a588df7
commit 413278544a
+6 -1
View File
@@ -200,7 +200,12 @@ def main():
try:
nodes = getattr(iface, "nodes", {}) or {}
for node_id, n in nodes.items():
upsert_node(node_id, n)
try:
upsert_node(node_id, n)
except Exception as e:
print(f"[warn] failed to update node snapshot for {node_id}: {e}")
if DEBUG:
print(f"[debug] node object: {n!r}")
except Exception as e:
print(f"[warn] failed to update node snapshot: {e}")
stop.wait(SNAPSHOT_SECS)