def _characterise_error(self): if "sword_verboseDescription" in self.metadata.keys(): 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")
def _characterise_error(self): if "sword_verboseDescription" in self.metadata.keys(): 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")
def _characterise_error(self): if "sword_verboseDescription" in self.metadata.keys(): self.verboseDescription = self.metadata['sword_verboseDescription'] if "href" in self.dom.attrib.keys(): self.error_href = self.dom.attrib['href'] self.error_info = get_error(self.error_href, self.code)