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

PEM handling of FileNotFound error #14

Open
sheggen opened this issue Sep 24, 2021 · 0 comments
Open

PEM handling of FileNotFound error #14

sheggen opened this issue Sep 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@sheggen
Copy link
Contributor

sheggen commented Sep 24, 2021

PEM is used to migrate that database, for example in reset_database.sh. When PEM cannot find a migration file (e.g., lsf_migrations/0001_migration_202109241252.py), it throws:

FileNotFoundError: [Errno 2] No such file or directory: 'lsf_migrations/0001_migration_202109241252.py'

The reset_database.sh script should handle this error and avoid crashing the reset, putting the database in an unknown state.

@sheggen sheggen added the bug Something isn't working label Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant