From b832ce704750f73dc597b33ceff3e7fe81c42b19 Mon Sep 17 00:00:00 2001 From: haosenwang1018 Date: Wed, 25 Feb 2026 09:20:13 +0000 Subject: [PATCH] fix: replace bare except clauses with except Exception Bare `except:` catches BaseException including KeyboardInterrupt and SystemExit. Replaced 1 instances with `except Exception:`. --- backend/services/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/history.py b/backend/services/history.py index 0e5cd8a7..10e1ee5a 100644 --- a/backend/services/history.py +++ b/backend/services/history.py @@ -465,7 +465,7 @@ def scan_and_sync_task_images(self, task_id: str) -> Dict[str, Any]: def get_index(filename): try: return int(filename.split('.')[0]) - except: + except Exception: return 999 image_files.sort(key=get_index)