

def _auth_future_to_callback(callback, future):
    try:
        result = future.result()
    except AuthError as e:
        gen_log.warning(str(e))
        result = None
    callback(result)

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py _auth_future_to_callback/original