mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
explicitly check for not None value
This commit is contained in:
parent
6b45c3239d
commit
3baa5cd19a
1 changed files with 1 additions and 1 deletions
|
|
@ -1726,7 +1726,7 @@ class ReticulumMeshChat:
|
||||||
interface_stats["transport_id"] = interface_stats["transport_id"].hex()
|
interface_stats["transport_id"] = interface_stats["transport_id"].hex()
|
||||||
|
|
||||||
# ensure network_id is hex as json_response can't serialize bytes
|
# ensure network_id is hex as json_response can't serialize bytes
|
||||||
if "network_id" in interface_stats and interface_stats["network_id"]:
|
if "network_id" in interface_stats and interface_stats["network_id"] is not None:
|
||||||
interface_stats["network_id"] = interface_stats["network_id"].hex()
|
interface_stats["network_id"] = interface_stats["network_id"].hex()
|
||||||
|
|
||||||
# ensure probe_responder is hex as json_response can't serialize bytes
|
# ensure probe_responder is hex as json_response can't serialize bytes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue