[Mailman-Developers] [Mailman-Users] Low level bug: (solved)
barry at python.org
Fri Jul 29 04:59:05 CEST 2005
On Thu, 2005-07-28 at 11:52, Mark Sapiro wrote:
> The real issue here seems to be that the import from mm_cfg done in the
> driver script is inadequately protected. The driver script
> print_traceback definition contains
> from Mailman.mm_cfg import VERSION
> except ImportError:
> VERSION = '<undetermined>'
> This is fine if there is an ImportError exception, but since mm_cfg.py
> is edited by users, it is possible (likely) that there will be a
> SyntaxError error exception here, and something more meaningful than
> the "Mailman experienced a very low level failure and could not even
> generate a useful traceback for you." message could be reported.
Bare excepts are evil, but maybe it's warranted in this situation. All
we really care about is the VERSION variable you're right that users can
easily put all manner of nastiness in there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/mailman-developers/attachments/20050728/f204fea5/attachment.pgp
More information about the Mailman-Developers