Nicer exit on CTRL-c
This change avoids stacktrace print on exit using CTRL-c Change-Id: I03401625c26d6d2b6301c8d6a60ed4a581741768
This commit is contained in:
parent
9285a97f4a
commit
c633b39067
@ -177,7 +177,10 @@ class App(object):
|
||||
self.status.update(offline=True)
|
||||
|
||||
def run(self):
|
||||
self.loop.run()
|
||||
try:
|
||||
self.loop.run()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
def _quit(self, widget=None):
|
||||
raise urwid.ExitMainLoop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user