def create_failure(exception=None):
    if exception:
        return FailedFuture(type(exception), exception, None)
    return FailedFuture(*sys.exc_info())
Convert 'a=b,c=d' to {'a': 'b', 'c': 'd'}
dataset/ETHPy150Open crossbario/txaio/txaio/aio.py/create_failure--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/custom/apps/wisepill/models.py/WisePillDeviceEvent.data_as_dict