From a736a74af63fd96d82e37d74d7c0e3685d230101 Mon Sep 17 00:00:00 2001 From: DaanSelen <80752476+DaanSelen@users.noreply.github.com> Date: Thu, 7 Aug 2025 13:56:38 +0200 Subject: [PATCH] Added more robust code checking (#15) Co-authored-by: Daan Selen --- meshbook.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meshbook.py b/meshbook.py index fe9c806..391b517 100644 --- a/meshbook.py +++ b/meshbook.py @@ -199,10 +199,12 @@ async def main(): if args.group != "": meshbook["group"] = args.group - del meshbook["device"] + if "device" in meshbook: + del meshbook["device"] elif args.device != "": meshbook["device"] = args.device - del meshbook["group"] + if "group" in meshbook: + del meshbook["group"] ''' The following section mainly displays used variables and first steps of the program to the console.