"raising a string exception is deprecated"?
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?
Particularly the "raise quickexit" has be a bit worried ... is the process that is being executed completing?
The above message was encountered when the checkdbs cronjob was running.
david
-- "The universe doesn't care what you believe. The wonderful thing about science is that it doesn't ask for your faith, it just asks for your eyes" --- http://xkcd.com/c154.html
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 <http://mail.python.org/pipermail/mailman-users/2007-September/058469.html>.
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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
David Gibbs
-
Mark Sapiro