From 99442e9f53424f9b107af737623a41f3f61ba375 Mon Sep 17 00:00:00 2001 From: Kailigithub Date: Wed, 27 May 2026 03:11:07 +0000 Subject: [PATCH] fix: replace bare except with except Exception in memory/ui_detect.py --- memory/ui_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory/ui_detect.py b/memory/ui_detect.py index 48e31221..1357ee0d 100644 --- a/memory/ui_detect.py +++ b/memory/ui_detect.py @@ -105,7 +105,7 @@ def visualize(image_path, elements, output_path=None): draw = ImageDraw.Draw(img) try: font = ImageFont.truetype("msyh.ttc", 14) - except: + except Exception: font = ImageFont.load_default() for el in elements: x1, y1, x2, y2 = el['bbox']