Can I return to executing try-block after exception occurs? (The goal is to write less) For Example:
try: do_smth1() except: pass try: do_smth2(
I don't think you want to do this. The correct way to use a try statement in general is as precisely as possible. I think it would be better to do:
try
try: do_smth1() except Stmnh1Exception: # handle Stmnh1Exception try: do_smth2() except Stmnh2Exception: # handle Stmnh2Exception