Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- foo()
- except Exception:
- print("Exception occured")
- else:
- print("Exception didnt occur")
- finally:
- print("Always gets here")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement