#NEWLINE# def should_retry( self , exception ) : #NEWLINE# #INDENT# 'Whether to retry a thrift request on the given exception.\n\n        Args:\n            exception: The exception thrown by the previous thrift request.\n\n        Returns:\n            True, if the request should be retried; False, otherwise.\n\n        ' #NEWLINE# return isinstance ( self , RetriableRPCException )