def should_retry(self, exception):
        # only service specific exceptions need to be considered
        return isinstance(exception, RetriableRPCException)
Whether to retry a thrift request on the given exception.
dataset/ETHPy150Open pinterest/kingpin/kingpin/thrift_utils/retry_policy.py/RetryPolicy.should_retry