mirror of
https://github.com/meshtastic/python.git
synced 2026-01-15 19:28:05 -05:00
Guard against lack of decoded message in --reply
This commit is contained in:
@@ -41,7 +41,7 @@ def onReceive(packet, interface):
|
||||
interface.close() # after running command then exit
|
||||
|
||||
# Reply to every received message with some stats
|
||||
if args and args.reply:
|
||||
if d is not None and args and args.reply:
|
||||
msg = d.get("text")
|
||||
if msg:
|
||||
rxSnr = packet["rxSnr"]
|
||||
|
||||
Reference in New Issue
Block a user