Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Exception constraint in DBMigration upgrade except #416

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

puehringer
Copy link
Contributor

@puehringer puehringer commented Aug 19, 2020

Closes #415.

Alembic raises exceptions which were previously not caught by the except Exception clause, causing the server startup to fail if a specific revision could not be identified (DB is on new branch version, code is on older branch) for example.
Now, everything is caught properly.

@puehringer puehringer force-pushed the mp/415_dbmigration_exception_fix branch from 8fe33a9 to 662b85b Compare August 19, 2020 11:02
Copy link

@lehnerchristian lehnerchristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also log the exception itself? not sure if it provides useful information

@puehringer
Copy link
Contributor Author

@lehnerchristian _log.exception logs the stacktrace as well I think. Is the PR fine for you?

@thinkh thinkh merged commit c30201c into develop Sep 8, 2020
@thinkh thinkh deleted the mp/415_dbmigration_exception_fix branch September 8, 2020 08:05
@thinkh thinkh added type: bug Something isn't working release: patch PR merge results in a new patch version labels Sep 8, 2020
@thinkh thinkh linked an issue Oct 12, 2020 that may be closed by this pull request
@dvvanessastoiber dvvanessastoiber mentioned this pull request Jan 27, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: patch PR merge results in a new patch version type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DBMigration only catches Exception, but no more general errors
3 participants