Merge pull request #153 from yanggao1119/temp-fix-minidom
replaced opensearch: as empty str
This commit is contained in:
commit
26f40953e8
|
@ -1136,13 +1136,13 @@ class _Request(object):
|
||||||
else:
|
else:
|
||||||
response = self._download_response()
|
response = self._download_response()
|
||||||
|
|
||||||
return minidom.parseString(_string(response))
|
return minidom.parseString(_string(response).replace("opensearch:", ""))
|
||||||
|
|
||||||
def _check_response_for_errors(self, response):
|
def _check_response_for_errors(self, response):
|
||||||
"""Checks the response for errors and raises one if any exists."""
|
"""Checks the response for errors and raises one if any exists."""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
doc = minidom.parseString(_string(response))
|
doc = minidom.parseString(_string(response).replace("opensearch:", ""))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise MalformedResponseError(self.network, e)
|
raise MalformedResponseError(self.network, e)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue