Ticket #13488: 13488.diff

File 13488.diff, 607 bytes (added by Rozza, 14 years ago)

Handle dying threads

  • django/contrib/gis/geos/prototypes/io.py

     
    105105
    106106    def __del__(self):
    107107        # Cleaning up with the appropriate destructor.
    108         if self._ptr: self._destructor(self._ptr)
     108        try:
     109            if self._ptr: self._destructor(self._ptr)
     110        except TypeError:
     111            # Thread is dying, rest in peace.
     112            pass
    109113
    110114### Base WKB/WKT Reading and Writing objects ###
    111115
Back to Top