Fixed invalid handling of corrupted discovery file

This commit is contained in:
Mark Qvist 2026-05-09 02:52:01 +02:00
parent a932a10492
commit 35e7ccb773

View file

@ -478,7 +478,7 @@ class InterfaceDiscovery():
except Exception as e: RNS.log(f"Error while reading existing data for discovered interface, re-creating data", RNS.LOG_ERROR)
if discovered == None: discovered = info["discovered"]
if discovered == None: discovered = info["received"]
if heard_count == None: heard_count = 0
with open(filepath, "wb") as f: