'Return the return value of this Attempt instance or raise an Exception.
If wrap_exception is true, this Attempt is wrapped inside of a
RetryError before being raised.'

def get(self, wrap_exception=False):

    if self.has_exception:
        if wrap_exception:
            raise RetryError(self)
        else:
            six.reraise(self.value[0], self.value[1], self.value[2])
    else:
        return self.value
