mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:19:25 +08:00
adj: raise exception when getting non-exists config from full config
This commit is contained in:
@@ -13,7 +13,7 @@ class AzurLaneFullConfig(FullGeneratedConfig):
|
||||
path = item.replace('_', '.')
|
||||
result = deep_get(self.config.data, path)
|
||||
if result is None:
|
||||
logger.error(f"Config {path} not found !")
|
||||
raise AttributeError(f"Config {path} not found !")
|
||||
return result
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
|
||||
Reference in New Issue
Block a user