Rename variable e to element
This commit is contained in:
parent
b0f2f5fe13
commit
4e5fe31572
|
@ -948,13 +948,13 @@ class _Request:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise MalformedResponseError(self.network, e) from e
|
raise MalformedResponseError(self.network, e) from e
|
||||||
|
|
||||||
e = doc.getElementsByTagName("lfm")[0]
|
element = doc.getElementsByTagName("lfm")[0]
|
||||||
logger.debug(doc.toprettyxml())
|
logger.debug(doc.toprettyxml())
|
||||||
|
|
||||||
if e.getAttribute("status") != "ok":
|
if element.getAttribute("status") != "ok":
|
||||||
e = doc.getElementsByTagName("error")[0]
|
element = doc.getElementsByTagName("error")[0]
|
||||||
status = e.getAttribute("code")
|
status = element.getAttribute("code")
|
||||||
details = e.firstChild.data.strip()
|
details = element.firstChild.data.strip()
|
||||||
raise WSError(self.network, status, details)
|
raise WSError(self.network, status, details)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue