From a57269958878c34f3c57c2e1e39207fe565f7781 Mon Sep 17 00:00:00 2001 From: Douile <25043847+Douile@users.noreply.github.com> Date: Wed, 27 Jul 2022 15:09:58 +0100 Subject: [PATCH] Fix crash when trying to set value that doesn't exist --- meshtastic/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 2f62419..6cbd7ea 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -337,9 +337,9 @@ def onConnected(interface): interface.getNode(args.dest).writeConfig() else: if Globals.getInstance().get_camel_case(): - print(f"{localConfig.__class__.__name__} and {moduleConfig.__class__.__name__} do not have an attribute {pref[0]}.") + print(f"{node.localConfig.__class__.__name__} and {node.moduleConfig.__class__.__name__} do not have an attribute {pref[0]}.") else: - print(f"{localConfig.__class__.__name__} and {moduleConfig.__class__.__name__} do not have attribute {pref[0]}.") + print(f"{node.localConfig.__class__.__name__} and {node.moduleConfig.__class__.__name__} do not have attribute {pref[0]}.") if args.configure: with open(args.configure[0], encoding='utf8') as file: