コード例 #1
0
ファイル: execute.py プロジェクト: ssami/python
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
コード例 #2
0
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"
コード例 #3
0
ファイル: execute.py プロジェクト: jeremyosborne/python
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"