1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

[#2146] Cleanup On CtrlC

This commit is contained in:
David Sangrey 2024-01-30 17:38:30 -05:00
parent c10afa6e68
commit 840dd54faf
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -2365,6 +2365,9 @@ sys.path: {sys.path}'''
# Check for FDEV IDs
root.after(3, check_fdev_ids)
# Start the main event loop
root.mainloop()
try:
root.mainloop()
except KeyboardInterrupt:
logger.info("Ctrl+C Detected, Attempting Clean Shutdown")
app.onexit()
logger.info('Exiting')