1
0
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:
0O0o0oOoO00
2025-09-12 23:30:32 +08:00
parent 0b1bfce553
commit 6a306c6bf5

View File

@@ -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):