views.py: extra indent
This commit is contained in:
parent
5b49036c8f
commit
fed4baa1d5
|
@ -28,7 +28,7 @@ def search_json(request):
|
||||||
bbox = map(float, bbox.split(","))
|
bbox = map(float, bbox.split(","))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
bbox = None
|
bbox = None
|
||||||
return render_to_json_response({'error': 'bbox must be in the form: minx,miny,maxx,maxy'})
|
return render_to_json_response({'error': 'bbox must be in the form: minx,miny,maxx,maxy'})
|
||||||
|
|
||||||
if not bbox and not search_term:
|
if not bbox and not search_term:
|
||||||
return render_to_json_response({'error': 'must supply either a valid `bbox` or a `search` parameter'})
|
return render_to_json_response({'error': 'must supply either a valid `bbox` or a `search` parameter'})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user