diff --git a/bink.py b/bink.py index 86d3533..eb77193 100755 --- a/bink.py +++ b/bink.py @@ -130,8 +130,8 @@ class App(): self.loop.start() def terminate(self): - raise urwid.ExitMainLoop - + raise InterruptedError + class ActionBox(urwid.ListBox): def keypress(self, size, key): keyl = key.lower() @@ -166,7 +166,7 @@ class ActionBox(urwid.ListBox): app = App() try: app.loop.run() -except (KeyboardInterrupt, urwid.ExitMainLoop): +except (KeyboardInterrupt, InterruptedError): app.loop.stop() call("clear", shell=True) print("bye!")