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.