chore: unbound error fix

This commit is contained in:
DaanSelen
2026-04-01 14:17:39 +02:00
parent c1d9f3751f
commit 3c8fc54d76
+5 -5
View File
@@ -65,11 +65,6 @@ async def init_connection(credentials: dict) -> meshctrl.Session:
return session return session
async def main(): async def main():
if not args.oscategories:
local_categories_file = "./os_categories.json"
else:
local_categories_file = args.oscategories
just_fix_windows_console() just_fix_windows_console()
''' '''
Main function where the program starts. Place from which all comands originate (eventually). Main function where the program starts. Place from which all comands originate (eventually).
@@ -84,6 +79,11 @@ async def main():
Console.text_color.reset + "MeshBook Version: " + Console.text_color.yellow + str(meshbook_version)) Console.text_color.reset + "MeshBook Version: " + Console.text_color.yellow + str(meshbook_version))
return return
if not args.oscategories:
local_categories_file = "./os_categories.json"
else:
local_categories_file = args.oscategories
if not args.meshbook: if not args.meshbook:
parser.print_help() parser.print_help()
return return