Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [~]% cat a.py
- import sys
- try:
- raise Exception('w00t')
- except Exception as exc:
- print('Handle', exc)
- finally:
- print(sys.exc_info())
- [~]% python a.py
- Handle w00t
- (None, None, None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement