Revision 3659
Added by Aaron Marcuse-Kubitza over 12 years ago
exc.py | ||
---|---|---|
10 | 10 |
import term |
11 | 11 |
import util |
12 | 12 |
|
13 |
def reraise(): raise |
|
13 |
def reraise(e=None): raise
|
|
14 | 14 |
|
15 | 15 |
def raise_(e): raise e |
16 | 16 |
|
Also available in: Unified diff
exc.py: reraise(): Take optional exception argument so it can be invoked in the same way as raise_(). Interestingly, this missing parameter does not produce the usual "...() takes no arguments (1 given)" error when the function is called inside an except block.