diff --git a/namecheap.py b/namecheap.py index 05911ca..df7f4aa 100644 --- a/namecheap.py +++ b/namecheap.py @@ -130,7 +130,7 @@ def _fetch_xml(self, payload, extra_payload = None): print(r.text) xml = fromstring(r.text) - if xml.attrib['Status'] == 'ERROR': + if xml.attrib['Status'].upper() == 'ERROR': # Response namespace must be prepended to tag names. xpath = './/{%(ns)s}Errors/{%(ns)s}Error' % {'ns': NAMESPACE} error = xml.find(xpath)