From 30026a18bdbf0898b314882503828becbf827b68 Mon Sep 17 00:00:00 2001 From: DaanSelen Date: Thu, 15 Jan 2026 13:40:21 +0100 Subject: [PATCH] fix: KeyError due to previous commit --- meshbook.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/meshbook.py b/meshbook.py index d58788e..a97adf2 100644 --- a/meshbook.py +++ b/meshbook.py @@ -102,13 +102,15 @@ async def main(): if args.group != "": meshbook["group"] = args.group if "device" in meshbook: - del meshbook["device"] - del meshbook["devices"] + del meshbook["device"] + if "devices" in meshbook: + del meshbook["devices"] elif args.device != "": meshbook["device"] = args.device if "group" in meshbook: - del meshbook["group"] - del meshbook["groups"] + del meshbook["group"] + if "groups" in meshbook: + del meshbook["groups"] ''' The following section mainly displays used variables and first steps of the program to the Console.