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)
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user