def _characterise_error(self):
        if self.metadata.keys() in "sword_verboseDescription":
            self.verbose_description = self.metadata['sword_verboseDescription']
        
        if self.dom != None:
            ed_l.debug("Error response contains document content")
            if "href" in self.dom.attrib.keys():
                self.error_href = self.dom.attrib['href']
                self.error_info = get_error(self.error_href, self.code)
        else:
            ed_l.debug("Error response does NOT contain document content")
dataset/ETHPy150Open swordapp/python-client-sword2/sword2/error_document.py/Error_Document._characterise_error/swapped operands of `in`