fork download
  1. list = [1,2,3,4,5,6]
  2.  
  3. for elem in list:
  4. while True:
  5. try:
  6. do_something(elem)
  7. break
  8. except Exception:
  9. resolve_errors()
Runtime error #stdin #stdout #stderr 0.01s 28384KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
NameError: name 'do_something' is not defined

During handling of the above exception, another exception occurred:

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