BCStudentSoftwareDevTeam / BCStudentSoftwareDevTeam/lsf-oss

PEM handling of FileNotFound error

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.