Guest User

Untitled

a guest
Dec 10th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import sys
  2.  
  3.  
  4. def some_func():
  5. ...
  6.  
  7.  
  8. def _child_process(target):
  9. try:
  10. target()
  11. sys.exit(0)
  12. except:
  13. print("Exception")
  14. sys.exit(1)
  15. finally:
  16. print("Out")
  17.  
  18.  
  19. try:
  20. _child_process(some_func)
  21. finally:
  22. print("Out2")
Add Comment
Please, Sign In to add comment