[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

Julian Scheid report at bugs.python.org
Thu Apr 15 13:35:55 CEST 2010


Julian Scheid <julians37 at googlemail.com> added the comment:

Hmm, wait.  Here's a variation of your suggestion that works OK-ish even as an example:

>>> try:
...    # ... code that fails ...
... except mypkg.MyException, e:
...    print(str(e))
Expected error message.

This works because it omits the exception type in the output.

It's still far from ideal, because as an example it's more complicated than it would need to be, but I guess it works as a stop-gap solution.

Still, +1 for including the patch.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7490>
_______________________________________


More information about the Python-bugs-list mailing list