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)