Guard against lack of decoded message in --reply

This commit is contained in:
Ian McEwen
2024-03-29 09:23:06 -07:00
parent 1a278db65e
commit 5a277ab4bd

View File

@@ -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"]