From 63407461fe8cd142d9dfd2548f06889b591a223b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 21 Dec 2020 16:04:11 +0100 Subject: [PATCH] Python 3.7 does not support continue in a finally block Signed-off-by: Yohann D'ANELLO --- squinnondation/squinnondation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/squinnondation/squinnondation.py b/squinnondation/squinnondation.py index c4916bd..52457f7 100644 --- a/squinnondation/squinnondation.py +++ b/squinnondation/squinnondation.py @@ -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)