do_magic() # Throws exception, doesn\'t execute do_foo and do_bar do_foo() do_bar()
try: do_mag
If there are no parameters...
funcs = do_magic, do_foo, do_bar for func in funcs: try: func() except: continue