1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:19:26 +08:00

fix: do not raise AttributeError when config path exists but its value is None

This commit is contained in:
0O0o0oOoO00
2026-01-29 12:35:15 +08:00
parent b79dd13da6
commit 3860c2f997

View File

@@ -12,8 +12,6 @@ class AzurLaneFullConfig(FullGeneratedConfig):
return super().__getattribute__(item)
path = item.split('_')
result = deep_get_with_error(self.config.data, path)
if result is None:
raise AttributeError(f"Config {path} not found !")
return result
def __setattr__(self, key, value):