diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/ptr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/ptr.py b/django/contrib/gis/ptr.py index afc83fdd22..a5a117a19a 100644 --- a/django/contrib/gis/ptr.py +++ b/django/contrib/gis/ptr.py @@ -34,5 +34,5 @@ class CPointerBase: if self.destructor and self._ptr: try: self.destructor(self.ptr) - except (AttributeError, TypeError): + except (AttributeError, ImportError, TypeError): pass # Some part might already have been garbage collected |
