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)
commitd9b3bb06e4dc46fb00d110218c1123dc51723a42
treed11b363d79599f78b89006cacf163b166466d120
parent04d55a057a7801e8f2b1ddce5fc86a57a626a5a4
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