Python 3.7 does not support continue in a finally block

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2020-12-21 16:04:11 +01:00
parent 38cea234bb
commit 63407461fe
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 2 additions and 4 deletions

View File

@ -544,12 +544,10 @@ class Squirrel(Hazelnut):
if key == "KEY_MOUSE":
try:
_, x, y, _, attr = curses.getmouse()
self.handle_mouse_click(y, x, attr)
continue
except curses.error:
# This is not a valid click
pass
else:
self.handle_mouse_click(y, x, attr)
finally:
continue
self.handle_key_pressed(key)