POP_EXCEPT added to code generated for try-except