views.py: extra indent

This commit is contained in:
Sanj 2011-08-31 15:49:39 +05:30
parent 5b49036c8f
commit fed4baa1d5

View File

@ -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'})