Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)