[Mailman-Users] "raising a string exception is deprecated"?

Mark Sapiro mark at msapiro.net
Wed Jan 2 22:52:48 CET 2008

David Gibbs wrote:

>I just upgraded to Fedora 8, which includes Python 2.5.1, and started
>noticing this error cropping up:
>/usr/local/mailman/Mailman/Utils.py:512: DeprecationWarning: raising a
>string exception is deprecated
>  raise quickexit
>Is this something I should be concerned with?

This is a known issue with Python 2.5.x and pre 2.1.10 Mailman. See

And no, it is not something you need to be concerned with.

>Particularly the "raise quickexit" has be a bit worried ... is the
>process that is being executed completing?

Yes. This is a coding trick to implement a multi-level 'break'.
Actually, that particular exception was changed to a class exception
in Mailman 2.1.9, but there are other string exceptions.

In Mailman 2.1.10, the warning is supressed so your logs (and cron
jobs) won't be cluttered with the warning, but other than the log
messages and cron emails, there is no problem that results.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list