def execute(*args): try: fabfile_3.hello(*args) # passing these including the * means we're actually unpacking them except TypeError as err: print "You haz error in hello: ", err try: fabfile_3.arg_type(*args) # if we passed them as (args) then we would pass a single argument - a list except TypeError as err: print "You haz error in arg_type: ", err
def execute(*args, **kwargs): try: hello(*args, **kwargs) except: print "You haz error in hello" try: arg_type(*args, **kwargs) except: print "You haz error in arg_type"