def find_nearest_pickleable_exception(exc):

    mro_ = getattr(exc.__class__, "mro", lambda: [])
    for supercls in mro_():
        if is_unwanted_exception_cls(supercls):
            # only BaseException and object, from here on down,
            # we don't care about these.
            return None
        try:
            exc_args = getattr(exc, "args", [])
            superexc = supercls(*exc_args)
            pickle.dumps(superexc)
        except:
            pass
        else:
            return superexc
    return None
Not implemented yet
dataset/ETHPy150Open kmike/tornado-slacker/slacker/serialization.py/find_nearest_pickleable_exception--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/base/building.py/Builder.buildTake