Message84037
Is the fix really correct? The documentation clearly states about
`sys.last_type`: "These three variables are not always defined; they are set
when an exception is not handled and the interpreter prints an error
message and a stack traceback." And there is already
`traceback.print_exc()`, which is a shorthand for
"print_exception(sys.exc_type, sys.exc_value, sys.exc_traceback, limit,
file)". So, in my opinion, the previous behaviour was intended behaviour,
and the OP needs to use `traceback.print_exc()`. |
|
Date |
User |
Action |
Args |
2009-03-23 21:19:36 | Trundle | set | recipients:
+ Trundle, benjamin.peterson, brtzsnr |
2009-03-23 21:19:36 | Trundle | set | messageid: <1237843176.56.0.950602149117.issue5543@psf.upfronthosting.co.za> |
2009-03-23 21:18:52 | Trundle | link | issue5543 messages |
2009-03-23 21:18:52 | Trundle | create | |
|