From e9951989f99ec9779dee3fdfa390ce22e8312f98 Mon Sep 17 00:00:00 2001 From: nebula Date: Thu, 24 Apr 2025 05:25:05 +0000 Subject: [PATCH] ugh --- bink.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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!")