Exceptions in signal handlers pass silently

Skip to first unread message

Thomas Güttler

Sep 30, 2014, 3:53:21 AM9/30/14
to django...@googlegroups.com
I just discovered, that exceptions in signal handlers pass silently.

Is there a way to not silently ignore errors?

>>> import this

Thomas Güttler

Collin Anderson

Oct 1, 2014, 8:39:35 AM10/1/14
to django...@googlegroups.com
use send() instead of send_robust().

Thomas Güttler

Oct 2, 2014, 6:52:15 AM10/2/14
to django...@googlegroups.com

Am 01.10.2014 um 14:39 schrieb Collin Anderson:
> use send() instead of send_robust().

I am sorry, I don't understand this answer. I subscribe to "post_init". I don't send the
signal, I receive it.

Is there a way to tell django to use send() for signals?


I found this solution:

from django.dispatch import Signal
Signal.send_robust = Signal.send

Source: http://giovanni.bajo.it/post/47207612849/djangos-signal-send-robust-is-broken-by-design

Collin Anderson

Oct 2, 2014, 1:39:55 PM10/2/14
to django...@googlegroups.com
The django internals and contrib apps never use send_robust(). It must be a 3rd party app that's calling it?
Reply all
Reply to author
0 new messages