From 032b645e0f6e9175c4934eca86c67956cb4b7ada Mon Sep 17 00:00:00 2001 From: Juhani Numminen Date: Sun, 9 Feb 2020 22:07:16 +0200 Subject: [PATCH] Do not catch exceptions too broadly in mainloop StopIteration seems to be the expected way to stop, at least for the tk and tile interfaces. --- pysollib/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysollib/app.py b/pysollib/app.py index 3f7d9c0e..12777b27 100644 --- a/pysollib/app.py +++ b/pysollib/app.py @@ -183,7 +183,7 @@ class Application: try: approc = self.mainproc() # setup process approc.send(None) # and go - except Exception: + except StopIteration: pass def gameproc(self):