meshtastic / python

The Python CLI and API for talking to Meshtastic devices
https://meshtastic.org
404 stars 170 forks source link

Current git version showNodes crash #439

Closed tb0hdan closed 1 year ago

tb0hdan commented 1 year ago
File "python/meshtastic/mesh_interface.py", line 164, in showNodes
    "AKA": user["shortName"],
KeyError: 'shortName'
tb0hdan commented 1 year ago
user["shortName"] -> user.get("shortName", "N/A")
tb0hdan commented 1 year ago

Another choice - use nodeId instead of N/A. That's what I do in my bot

tb0hdan commented 1 year ago

Works now, closing issue.