Add KeyboardInterrupt handling

This commit is contained in:
Luigi311
2022-05-23 02:01:28 -06:00
parent a375f94487
commit 768103f113
2 changed files with 5 additions and 1 deletions

View File

@@ -204,5 +204,8 @@ if __name__ == "__main__":
logger(traceback.format_exc(), 2)
logger("Retrying in {sleep_timer}", log_type=0)
except KeyboardInterrupt:
logger("Exiting", log_type=0)
os._exit(0)
sleep(sleep_timer)