Skip to content

Commit 777ed90

Browse files
committed
Exit gracefully on KeyboardInterrupt.
1 parent 2f40c28 commit 777ed90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitbrowse/ui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ def run(self):
144144

145145
try:
146146
self.command_input.edit(recurse=True)
147+
except KeyboardInterrupt:
148+
self._teardown_curses()
149+
return
147150
except:
148151
self._teardown_curses()
149152
raise

0 commit comments

Comments
 (0)