Exceptions in signal handlers pass silently

32 views
Skip to first unread message

Thomas Güttler

unread,
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
http://thomas-guettler.de/

Collin Anderson

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

Thomas Güttler

unread,
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

unread,
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
Forward
0 new messages