Catch exceptions in YAML menus
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 20 May 2014 08:40:10 +0000 (08:40 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Tue, 20 May 2014 08:40:10 +0000 (08:40 +0000)
commitdcc88f964184b499d3ec6ed96b8aa438f2f98d55
tree8e2343eab1be6a131dab53e49063329b0ad3d1c0
parent24e9c787ca5751b65594737eb9ce1f42656de1be
Catch exceptions in YAML menus

* 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.
lib/mudpy/misc.py