pep8 fixes for #153

This commit is contained in:
hugovk 2016-02-09 11:24:03 +02:00
parent 26f40953e8
commit 97c1fcc5ec

View file

@ -1136,13 +1136,15 @@ class _Request(object):
else:
response = self._download_response()
return minidom.parseString(_string(response).replace("opensearch:", ""))
return minidom.parseString(_string(response).replace(
"opensearch:", ""))
def _check_response_for_errors(self, response):
"""Checks the response for errors and raises one if any exists."""
try:
doc = minidom.parseString(_string(response).replace("opensearch:", ""))
doc = minidom.parseString(_string(response).replace(
"opensearch:", ""))
except Exception as e:
raise MalformedResponseError(self.network, e)