def execute(callable, *args, **kw):
    try:
        result = callable(*args, **kw)
    except:
        return fail()
    else:
        return succeed(result)
Create a L{Deferred} from a callable and arguments.
dataset/ETHPy150Open twisted/twisted/twisted/internet/defer.py/execute