Ticket #35538: gdal_exception.patch

File gdal_exception.patch, 593 bytes (added by Dustin Sampson, 3 months ago)
  • django/contrib/gis/forms/fields.py

    diff --git a/django/contrib/gis/forms/fields.py b/django/contrib/gis/forms/fields.py
    index 1fd31530c1..42ecfdecaa 100644
    a b class GeometryField(forms.Field):  
    4848            else:
    4949                try:
    5050                    value = GEOSGeometry(value)
    51                 except (GEOSException, ValueError, TypeError):
     51                except (GDALException, GEOSException, ValueError, TypeError):
    5252                    value = None
    5353            if value is None:
    5454                raise ValidationError(
Back to Top