Fix autogenerate diffs error handling
This commit is contained in:
parent
99f0943f23
commit
2a8c972d49
1 changed files with 2 additions and 1 deletions
|
|
@ -155,7 +155,8 @@ class DatabaseService(Service):
|
|||
command.check(alembic_cfg)
|
||||
except util.exc.AutogenerateDiffsDetected as exc:
|
||||
logger.exception("AutogenerateDiffsDetected: {exc}")
|
||||
raise RuntimeError("Something went wrong running migrations. Please, run `langflow migration --fix`")
|
||||
if not fix:
|
||||
raise RuntimeError("Something went wrong running migrations. Please, run `langflow migration --fix`")
|
||||
|
||||
if fix:
|
||||
self.try_downgrade_upgrade_until_success(alembic_cfg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue