def PrintGenerationMenu(): Selection = input("\nGeneration Menu > ") try: if Selection == "exit": #print("Spacer") SelectMenu(GenerationMenu, MainMenu) elif Selection == "reload": Core.ClearScreen() os.execl(sys.executable, sys.executable, *sys.argv) else: Selection = (int(Selection)) if Selection == 1: Generation.HTTPGen() elif Selection == 2: Generation.DHCPGen() elif Selection == 3: Generation.DNSGen() except: SelectMenu(GenerationMenu, GenerationMenu)