This commit is contained in:
Jack Robison 2018-07-28 23:53:42 -04:00
parent bf9e4a90d2
commit 788b3c5dba
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -51,9 +51,7 @@ class RootDevice(object):
try:
root = flatten_keys(etree_to_dict(ElementTree.fromstring(xml_string)), "{%s}" % DEVICE)[ROOT]
except Exception as err:
log.exception("failed to decode xml")
log.error(xml_string)
log.info(binascii.hexlify(xml_string.encode()))
log.exception("failed to decode xml: %s\n%s", err, xml_string)
root = {}
self.spec_version = root.get(SPEC_VERSION)
self.url_base = root.get("URLBase")