diff --git a/overpass/api.py b/overpass/api.py index a5fe645bb3..1d0c16637d 100644 --- a/overpass/api.py +++ b/overpass/api.py @@ -110,6 +110,8 @@ def get(self, query, responseformat="geojson", verbosity="body", build=True, dat return list(csv.reader(StringIO(r.text), delimiter="\t")) elif content_type in ("text/xml", "application/xml", "application/osm3s+xml"): return r.text + elif content_type.startswith("text/html"): + raise ServerRuntimeError(r.text) else: response = json.loads(r.text)