mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-24 05:22:15 +03:00
bdd: be more verbose on HTML parsing error
This commit is contained in:
parent
1e0025b095
commit
ca6e65fff1
@ -243,7 +243,7 @@ def step_impl(context, fmt):
|
||||
try:
|
||||
tree = ET.fromstring(context.response.page)
|
||||
except Exception as ex:
|
||||
assert False, f"Could not parse page:\n{context.response.page}"
|
||||
assert False, f"Could not parse page: {ex}\n{context.response.page}"
|
||||
|
||||
assert tree.tag == 'html'
|
||||
body = tree.find('./body')
|
||||
|
Loading…
Reference in New Issue
Block a user