fork download
  1. def a():
  2. try:
  3. x = 10/0;
  4. except Exception as e:
  5. raise TestException(e)
  6.  
  7. def b():
  8. a();
  9.  
  10. def c():
  11. b();
  12.  
  13. a();
Runtime error #stdin #stdout #stderr 0.01s 27704KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in a
ZeroDivisionError: division by zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./prog.py", line 13, in <module>
  File "./prog.py", line 5, in a
NameError: name 'TestException' is not defined