diff --git a/app/main.py b/app/main.py index 0382cc3..2a7a3d8 100644 --- a/app/main.py +++ b/app/main.py @@ -38,10 +38,6 @@ def listen_for_command(errorcode): rescode = None if cmd.lower() == "exit": exit(0) else: rescode = os.system(cmd) - # if rescode != 0: - # print(f"{colors.red}Command failed with exit code: {rescode}{colors.end}") - # errcode = rescode - # else: errcode = None return rescode #def cleanup(reason: str): @@ -52,9 +48,9 @@ def listen_for_command(errorcode): # Initialization start() while True: - try: errcode = listen_for_command(errcode) + try: + errcode = listen_for_command(errcode) except KeyboardInterrupt: print("Keyboard Interrupt initialized. Cleaning up...") -# cleanup("Manually initialized exit [KeyboardInterrupt]") + # cleanup("Manually initialized exit [KeyboardInterrupt]") exit(130) -