This commit is contained in:
yumoqing 2025-07-18 14:14:50 +08:00
parent 6fb4f7eff0
commit ab18e1d513

View File

@ -28,7 +28,8 @@ class DictObject(dict):
try:
return self[key]
except KeyError:
raise AttributeError(f"No such attribute: {key}")
return None
# raise AttributeError(f"No such attribute: {key}")
def __setattr__(self, key, value):
self[key] = value