Advertisement
Guest User

Untitled

a guest
Mar 5th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. [~]% cat a.py
  2. import sys
  3.  
  4. try:
  5. raise Exception('w00t')
  6. except Exception as exc:
  7. print('Handle', exc)
  8. finally:
  9. print(sys.exc_info())
  10.  
  11. [~]% python a.py
  12. Handle w00t
  13. (None, None, None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement