Ticket #35538: gdal_exception.patch
File gdal_exception.patch, 593 bytes (added by , 5 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): 48 48 else: 49 49 try: 50 50 value = GEOSGeometry(value) 51 except (G EOSException, ValueError, TypeError):51 except (GDALException, GEOSException, ValueError, TypeError): 52 52 value = None 53 53 if value is None: 54 54 raise ValidationError(