Skip to content

Commit c9dcfb1

Browse files
Robin-K-Lynntlecomte
authored andcommitted
Gracefully close on keyboard interrupt
1 parent eccd23b commit c9dcfb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

friture/analyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def __init__(self):
196196
def excepthook(self, exception_type, exception_value, traceback_object):
197197
# a keyboard interrupt is an intentional exit, so close the application
198198
if exception_type is KeyboardInterrupt:
199+
self.close()
199200
exit(0)
200201

201202
gui_message = fileexcepthook(exception_type, exception_value, traceback_object)

0 commit comments

Comments
 (0)