Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Gracefully handle exceptions during direct i18n loading
If translations.py doesn't exist, MCprep moves to direct i18n, which directly uses MO files for translations (at the cost of some UI updating issues). However, if these MO files do not exist, then MCprep will throw an exception. Since this exception occurs in the creation of `MCprepEnv`, MCprep is rendered unusable. This patch adds a basic try-except statement to allow `MCprepEnv` to handle these exceptions gracefully. Signed-off-by: Mahid Sheikh <mahid@standingpad.org>
- Loading branch information