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
This commit is contained in:
parent
23d1a9f05b
commit
ad1f3aa532
1 changed files with 3 additions and 0 deletions
|
|
@ -1421,6 +1421,9 @@ def migrate_db():
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
migrate(migrator.add_column("task", "is_paused", BooleanField(default=False, index=True, help_text="Whether task is currently paused")))
|
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
|
# RAG Evaluation tables
|
||||||
try:
|
try:
|
||||||
migrate(migrator.add_column("evaluation_datasets", "id", CharField(max_length=32, primary_key=True)))
|
migrate(migrator.add_column("evaluation_datasets", "id", CharField(max_length=32, primary_key=True)))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue