1
0
forked from iarv/contact

Merge pull request #237 from pdxlocations:close-interface

close the interface on quit
This commit is contained in:
pdxlocations
2025-12-27 02:26:28 -05:00
committed by GitHub

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)