def get(self, timeout=None, propagate=True, **kwargs):
    if self.successful():
        return self.result
    elif (self.state in states.PROPAGATE_STATES):
        if propagate:
            raise self.result
        return self.result
def get(self, timeout=None, propagate=True, **kwargs):
    if self.successful():
        return self.result
    elif (self.state in states.PROPAGATE_STATES):
        if propagate:
            raise self.result
        return self.result