SyntaxFix
Write A Post
Hire A Developer
Questions
You could iterate through your methods...
for m in [do_smth1, do_smth2]: try: m() except: pass