Fix error message on TomTom error
This commit is contained in:
@@ -97,7 +97,8 @@ class TomTomGeocoder(Traceable):
|
|||||||
elif response.status_code == requests.codes.unprocessable_entity:
|
elif response.status_code == requests.codes.unprocessable_entity:
|
||||||
return []
|
return []
|
||||||
else:
|
else:
|
||||||
raise ServiceException(response.status_code, response)
|
msg = 'Unknown response: {}'.format(str(response.status_code))
|
||||||
|
raise ServiceException(msg, response)
|
||||||
except requests.Timeout as te:
|
except requests.Timeout as te:
|
||||||
# In case of timeout we want to stop the job because the server
|
# In case of timeout we want to stop the job because the server
|
||||||
# could be down
|
# could be down
|
||||||
|
|||||||
Reference in New Issue
Block a user