Skip to content

Commit

Permalink
Guard against lack of decoded message in --reply
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Mar 29, 2024
1 parent 1a278db commit 5a277ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshtastic/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 5a277ab

Please sign in to comment.