From ad1f3aa53284711d270a4cdd13c4887d0a31ea88 Mon Sep 17 00:00:00 2001 From: "hsparks.codes" Date: Wed, 3 Dec 2025 10:34:55 +0100 Subject: [PATCH] fix: Add missing except block in database migrations - Add missing except Exception: pass for is_paused migration - Fixes syntax error: Expected except or finally after try block - Line 1423-1425 now properly formatted --- api/db/db_models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/db/db_models.py b/api/db/db_models.py index 00eae340b..57995181f 100644 --- a/api/db/db_models.py +++ b/api/db/db_models.py @@ -1421,6 +1421,9 @@ def migrate_db(): pass try: migrate(migrator.add_column("task", "is_paused", BooleanField(default=False, index=True, help_text="Whether task is currently paused"))) + except Exception: + pass + # RAG Evaluation tables try: migrate(migrator.add_column("evaluation_datasets", "id", CharField(max_length=32, primary_key=True)))