Message121192
Note that after the loop over the values is complete, the final value of tb should correctly refer to the traceback for the exception currently being handled regardless of whether or not any chaining is involved.
So moving the stack printing code that is currently inside the loop after the loop should do the right thing.
With my suggested change in the display layout, I think this idea is still worthwhile (getting it right in handling code is tricky, especially if the exception is passed around before being displayed). |
|
Date |
User |
Action |
Args |
2010-11-14 12:47:15 | ncoghlan | set | recipients:
+ ncoghlan, vinay.sajip, guettli, hoffman, ggenellina, pakal, r.david.murray, news1234, ysj.ray |
2010-11-14 12:47:15 | ncoghlan | set | messageid: <1289738835.36.0.627622537486.issue1553375@psf.upfronthosting.co.za> |
2010-11-14 12:47:13 | ncoghlan | link | issue1553375 messages |
2010-11-14 12:47:13 | ncoghlan | create | |
|