fix nattributes typo

This commit is contained in:
InspectorCaracal 2023-09-14 17:50:50 -06:00 committed by GitHub
parent 38735466af
commit cca8cd9fa9

View file

@ -1503,7 +1503,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
self.attributes.batch_add(*cdict["attributes"])
if cdict.get("nattributes"):
# this should be a dict of nattrname:value
for key, value in cdict["nattributes"]:
for key, value in cdict["nattributes"].items():
self.nattributes.add(key, value)
del self._createdict