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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user