mirror of
https://github.com/django/django.git
synced 2025-06-06 03:59:12 +00:00
Prevented Attribute error in GDAL objects deletion
This commit is contained in:
parent
ce078ef976
commit
b011afe6c8
@ -342,7 +342,7 @@ class CoordTransform(GDALBase):
|
|||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"Deletes this Coordinate Transformation object."
|
"Deletes this Coordinate Transformation object."
|
||||||
if self._ptr:
|
if self._ptr and capi:
|
||||||
capi.destroy_ct(self._ptr)
|
capi.destroy_ct(self._ptr)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user