1
0
forked from iarv/contact

close the interface on quit

This commit is contained in:
pdxlocations
2025-12-26 23:26:14 -08:00
parent b048fe2480
commit 6b18809215

View File

@@ -129,8 +129,10 @@ def start() -> None:
try:
curses.wrapper(main)
interface_state.interface.close()
except KeyboardInterrupt:
logging.info("User exited with Ctrl+C")
interface_state.interface.close()
sys.exit(0)
except Exception as e:
logging.critical("Fatal error", exc_info=True)