* lib/mudpy/misc.py(Element.facets,Element.get): Early in login and
account creation, elements can have None in place of a dict for their
data. Under these circumstances, listing their keys throws
AttributeError and deep-linking into specific keys throws TypeError.
Catch these and treat them as empty.
if self.origin._format == "yaml":
try:
return self.origin.data[self.key].keys()
- except KeyError:
+ except (AttributeError, KeyError):
return []
else:
if self.key in self.origin.data.sections():
if self.origin._format == "yaml":
try:
return self.origin.data[self.key][facet]
- except KeyError:
+ except (KeyError, TypeError):
pass
if self.has_facet("inherit"):
for ancestor in self.ancestry():