Merge pull request #155 from omgbebebe/master

check if network_id is not None
This commit is contained in:
Liam Cottle 2026-04-06 01:27:13 +12:00 committed by GitHub
commit b36dcddfcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1726,7 +1726,7 @@ class ReticulumMeshChat:
interface_stats["transport_id"] = interface_stats["transport_id"].hex()
# ensure network_id is hex as json_response can't serialize bytes
if "network_id" in interface_stats:
if "network_id" in interface_stats and interface_stats["network_id"] is not None:
interface_stats["network_id"] = interface_stats["network_id"].hex()
# ensure probe_responder is hex as json_response can't serialize bytes