Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- #something which throws ExceptionX
- except ExceptionX:
- #handle the exception
- else:
- #do something if no exception was raised
- try:
- result = #something which throws ExceptionX
- except ExceptionX:
- #handle the exception
- result = None
- if result is not None:
- #do something if no exception was raised?
Advertisement
Add Comment
Please, Sign In to add comment