Remove testing exception
This commit is contained in:
parent
f97294cfc1
commit
7cca8e95c3
@ -42,16 +42,10 @@ class MatrixClient:
|
|||||||
}
|
}
|
||||||
response = requests.get(self.ONE_TO_MANY_URL, params=request_params)
|
response = requests.get(self.ONE_TO_MANY_URL, params=request_params)
|
||||||
|
|
||||||
raise Exception('testing exception handling')
|
|
||||||
if not requests.codes.ok:
|
if not requests.codes.ok:
|
||||||
self._logger.error('Error trying to get matrix distance from mapzen',
|
self._logger.error('Error trying to get matrix distance from mapzen',
|
||||||
data={"response": response.json(), "locations":
|
data={"response": response.json(), "locations":
|
||||||
locations, "costing": costing})
|
locations, "costing": costing})
|
||||||
raise Exception('Error trying to get matrix distance from mapzen')
|
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()
|
return response.json()
|
||||||
|
Loading…
Reference in New Issue
Block a user