def send(self, value=None, exc=None): if exc is not None or not self.has_error(): Queue.send(self, value, exc)