mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
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.
This commit is contained in:
parent
00f6f70e93
commit
032b645e0f
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class Application:
|
||||||
try:
|
try:
|
||||||
approc = self.mainproc() # setup process
|
approc = self.mainproc() # setup process
|
||||||
approc.send(None) # and go
|
approc.send(None) # and go
|
||||||
except Exception:
|
except StopIteration:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def gameproc(self):
|
def gameproc(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue