This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abingham
Recipients abingham
Date 2011-01-02.14:23:48
SpamBayes Score 1.655452e-08
Marked as misclassified No
Message-id <>
traceback.print_exception() will throw an AttributeException if `value` is None and `chain` is True. This is because `_iter_chain` assumes that the exception object has a `__cause__` attribute. You can trigger this by trying for format a non-existent exception:

  >>> import logging, sys
  >>> logging.Formatter().formatException(sys.exc_info())
  Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.1/logging/", line 418, in formatException
    traceback.print_exception(ei[0], ei[1], ei[2], None, sio)
  File "/usr/lib/python3.1/", line 155, in print_exception
    for value, tb in values:
  File "/usr/lib/python3.1/", line 122, in _iter_chain
    cause = exc.__cause__

This is assuming that sys.exc_info() returns (None, None, None).
Date User Action Args
2011-01-02 14:23:51abinghamsetrecipients: + abingham
2011-01-02 14:23:51abinghamsetmessageid: <>
2011-01-02 14:23:48abinghamlinkissue10805 messages
2011-01-02 14:23:48abinghamcreate