From 5a277ab4bddefbe6f1917071357d4b370e62ed9b Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Fri, 29 Mar 2024 09:23:06 -0700 Subject: [PATCH] Guard against lack of decoded message in --reply --- meshtastic/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 6c3ce86..8734232 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -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"]