Closed matkoniecz closed 6 years ago
I totally agree. What node did you try to get (I'm asking to write a meaningful test for it)? I guess the OSM API returned an emtpy result.
Unfortunately I have no idea, what worse running the same code again resulted in lack of crash (probably it was a network error).
In #91 I introduced a new error called XmlResponseInvalidError
which is raised, whenever the response from the OpenStreetMap API is invalid. You can either catch it in your application or at least get a better error message, should it ever occur (again).
Thanks!
I guess that I provided wrong data but
is unhelpful in diagnosing what went wrong.
Maybe throwing a more readable exception explaining what is wrong would be a better idea?