Nicer exit on CTRL-c

This change avoids stacktrace print on exit using CTRL-c

Change-Id: I03401625c26d6d2b6301c8d6a60ed4a581741768
This commit is contained in:
Cedric Brandily 2014-11-06 10:34:49 +01:00
parent 9285a97f4a
commit c633b39067

View File

@ -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()