Skip Montanaro <skip at pobox.com> added the comment: How about reformulating it as a function appropriate as sys.excepthook? _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue1098732> _______________________________________