

def __exit__(self, exc_type, exc_value, traceback):
    if (exc_type is None):
        return
    if (exc_type.__name__ in self.exceptions):
        new_type = self.exceptions[exc_type.__name__]
        if PY26:
            exc_args = exc_value
        else:
            exc_args = exc_value.args
        reraise(new_type, new_type(*exc_args), traceback)

dataset/ETHPy150Open coleifer/peewee/peewee.py ExceptionWrapper.__exit__/original