-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make custom modes/roles imports more robust
The roles/ and gamemodes/ directories always exist, so imports of them will always succeed regardless of whether their respective __init__.py files exist (if they don't, they're imported as a namespace package). As such, we don't need a try/except wrapper here, allowing for any errors in custom roles/modes to bubble up properly. We also unconditionally import src.roles and src.gamemodes, since these packages don't actually import the builtin roles/modes, only shared stuff useful across all roles/modes (including custom ones).
- Loading branch information
Showing
2 changed files
with
7 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters