Hotfix: Typo in status code check

This commit is contained in:
Mario de Frutos
2016-10-26 17:49:07 +02:00
parent 75557837b0
commit 336d8be977

View File

@@ -57,7 +57,7 @@ class MatrixClient:
# isolines generation
if response.status_code == requests.codes.bad_request:
return {}
elif response.status_coe == 504:
elif response.status_code == 504:
# Due to some unsolved problems in the Mapzen Matrix API we're
# getting randomly 504, probably timeouts. To avoid raise an
# exception in all the jobs, for now we're going to return