[issue10805] traceback.print_exception throws AttributeError when exception is None

2015-03-08 Thread Claudiu Popa
Claudiu Popa added the comment: This was recently fixed in 3.5 by 73afda5a4e4c. -- nosy: +Claudiu.Popa resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue10805] traceback.print_exception throws AttributeError when exception is None

2012-02-23 Thread Giovanni Funchal
Giovanni Funchal added the comment: This bug affects me, found it when migrating from 2.7 to 3.2, in a function calling traceback.print_exc() called while there were no "active" exception being handled. Previous behavior was to print "None". -- nosy: +Giovanni.Funchal ___

[issue10805] traceback.print_exception throws AttributeError when exception is None

2011-12-17 Thread Boris FELD
Boris FELD added the comment: I add a test to test_traceback.py for this bug. Bug is confirmed on python 3.2 and python3.3. I use 2.x behavior as reference. I don't know if we should add an assertion in traceback.print_exception or traceback._iter_chain, so I add the test for traceback.print_

[issue10805] traceback.print_exception throws AttributeError when exception is None

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, under 2.x, print_traceback(None, None, None) would just print "None", but I'm not sure that's a supported use case. -- nosy: +ncoghlan ___ Python tracker __

[issue10805] traceback.print_exception throws AttributeError when exception is None

2011-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10805] traceback.print_exception throws AttributeError when exception is None

2011-01-02 Thread Austin Bingham
New submission from Austin Bingham : 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 except