Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Feb 13, 2023
1 parent 4bebac0 commit 7890a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions owslib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,14 @@ def getXMLTree(rsp: ResponseWrapper) -> etree:

xml_types = ['text/xml', 'application/xml', 'application/vnd.ogc.wms_xml']
if not any(xt in content_type.lower() for xt in xml_types):
html_body = et.find('BODY') # note this is case-sensitive
html_body = et.find('BODY') # note this is case-sensitive
if html_body is not None and len(html_body.text) > 0:
response_text = html_body.text.strip("\n")
else:
response_text = raw_text

raise ValueError("%s responded with Content-Type '%s': '%s'" %
(url, content_type, response_text))
(url, content_type, response_text))

return et

Expand Down

0 comments on commit 7890a58

Please sign in to comment.