Fix exception variable name in database service

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-05 17:44:48 -03:00
commit 1d23649358

View file

@ -174,7 +174,7 @@ class DatabaseService(Service):
if not fix:
raise RuntimeError(
"Something went wrong running migrations. Please, run `langflow migration --fix`"
) from e
) from exc
if fix:
self.try_downgrade_upgrade_until_success(alembic_cfg)