JSON response is not always present, better show the reponse object complete

This commit is contained in:
Mario de Frutos
2016-08-05 11:35:16 +02:00
parent 0ef333b274
commit 0fb3cdd8b1
2 changed files with 2 additions and 2 deletions
@@ -44,7 +44,7 @@ class MatrixClient:
if not requests.codes.ok:
self._logger.error('Error trying to get matrix distance from mapzen',
data={"response": response.json(), "locations":
data={"response": response, "locations":
locations, "costing": costing})
raise Exception('Error trying to get matrix distance from mapzen')