summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMushtaq Ali <mushtaque.ali@arbisoft.com>2018-07-06 20:26:14 +0500
committerTim Graham <timograham@gmail.com>2018-07-06 11:26:14 -0400
commit66b6b689239dad3f017d2a3495df748cbee5debb (patch)
tree30b866674ba72e6a4c206f864b168fe66ac43f51 /django
parentf98e1c01eafa724cb87772ae03b3fd1158e9fd50 (diff)
Fixed #29543 -- Fixed CPointerBase.__del__() ImportError crash.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/ptr.py2
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