Remove testing exception

This commit is contained in:
Mario de Frutos 2016-08-03 14:45:07 +02:00
parent f97294cfc1
commit 7cca8e95c3

View File

@ -42,16 +42,10 @@ class MatrixClient:
}
response = requests.get(self.ONE_TO_MANY_URL, params=request_params)
raise Exception('testing exception handling')
if not requests.codes.ok:
self._logger.error('Error trying to get matrix distance from mapzen',
data={"response": response.json(), "locations":
locations, "costing": costing})
raise Exception('Error trying to get matrix distance from mapzen')
else:
self._logger.debug('Done get matrix distance from mapzen',
data={"response": response.json(),
"locations": locations,
"costing": costing})
return response.json()