Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/g/e/geojsonlint.com-HEAD/geojsonlint/views.py   geojsonlint.com(Download)
from django.shortcuts import render_to_response
 
from utils import track_validate, validate_geojson, get_remote_json
from exc import GeoJSONValidationException, NonFetchableURLException
 
 
    try:
        validate_geojson(test_geojson)
    except GeoJSONValidationException as e:
        return _geojson_error(str(e), testing)

src/g/e/geojsonlint.com-HEAD/geojsonlint/tests.py   geojsonlint.com(Download)
 
import sample_geojson as samples
from utils import validate_geojson
from exc import GeoJSONValidationException
 
    for valid in valids:
        # A GeoJSONValidationException will be raised if something is invalid, so just looping is fine.
        validate_geojson(valid)
 
 
        for invalid in invalids:
            try:
                validate_geojson(invalid)
                valids += 1
            except GeoJSONValidationException: