def __init__(self, func, error): if not ExceptionUtil.has_traceback(error): ExceptionUtil.set_traceback(error) Match.__init__(self, func=func) self.stored_error = error