#25657: gevent-monkeypatching with GIS PointField causes intermittent traceback 
on
shutdown
--------------------------+------------------------------------
     Reporter:  jaddison  |                    Owner:  nobody
         Type:  Bug       |                   Status:  new
    Component:  GIS       |                  Version:  1.9b1
     Severity:  Normal    |               Resolution:
     Keywords:  gevent    |             Triage Stage:  Accepted
    Has patch:  0         |      Needs documentation:  0
  Needs tests:  0         |  Patch needs improvement:  0
Easy pickings:  0         |                    UI/UX:  0
--------------------------+------------------------------------
Changes (by claudep):

 * stage:  Unreviewed => Accepted


Comment:

 I also got one of those exception today with Django 1.8.5/Python 3.4.

 I think we should simply catch `TypeError` in the destructor methods and
 ignore in case of exceptions.

 So instead of current:
 {{{
 if self._ptr and capi:
         capi.release_srs(self._ptr)
 }}}
 Let's write:
 {{{
 try:
     capi.release_srs(self._ptr)
 except TypeError:
     pass
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25657#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.4d088b8663156eb4bec8ad957014b75d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to