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

Error Migration and Refactoring for 3.6.0 #549

Merged
merged 9 commits into from
May 1, 2024
8 changes: 7 additions & 1 deletion MCprep_addon/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self):
# list of material names, each is a string. None by default to indicate
# that no reading has occurred. If lib not found, will update to [].
# If ever changing the resource pack, should also reset to None.
self.material_sync_cache = []
self.material_sync_cache: Optional[List] = []

# Whether we use PO files directly or use the converted form
self.use_direct_i18n = False
Expand Down Expand Up @@ -303,10 +303,16 @@ class MCprepError(object):
Path of file the exception object
was created in. The preferred way
to get this is __file__

msg: Optional[str]
Optional message to display for an
exception. Use this if the exception
type may not be so clear cut
"""
err_type: BaseException
line: int
file: str
msg: Optional[str] = None

env = MCprepEnv()

Expand Down
219 changes: 0 additions & 219 deletions MCprep_addon/materials/default_materials.py

This file was deleted.

Loading