4xx generated empty responses

This commit is contained in:
Mario de Frutos
2016-03-17 22:54:19 +01:00
parent 47f2eba4e4
commit 4061009df0
2 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ RETURNS cdb_dataservices_server.simple_route AS $$
resp = client.calculate_route_point_to_point(origin_coordinates, dest_coordinates, mode, options, units)
if resp:
if resp and resp.shape:
shape_linestring = polyline_to_linestring(resp.shape)
quota_service.increment_success_service_use()
return [shape_linestring, resp.length, resp.duration]