Message76732
The interactive interpreter doesn't appear to like it if __cause__ and
__context__ are both set on the current exception.
=================
>>> try:
... raise IOError
... except:
... raise AttributeError from KeyError
...
KeyError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
IOError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
AttributeError
=================
I'm not entirely sure what *should* be displayed here (the code I typed
in is admittedly bizarre), but what is currently being displayed
definitely isn't right. |
|
Date |
User |
Action |
Args |
2008-12-02 10:33:59 | ncoghlan | set | recipients:
+ ncoghlan |
2008-12-02 10:33:58 | ncoghlan | set | messageid: <1228214038.9.0.934760513423.issue4486@psf.upfronthosting.co.za> |
2008-12-02 10:33:57 | ncoghlan | link | issue4486 messages |
2008-12-02 10:33:56 | ncoghlan | create | |
|