def _rate_limit_exceeded(forbidden):
 return any(((error['reason'] == 'rateLimitExceeded') for error in forbidden._errors))

def _rate_limit_exceeded ( forbidden ) : return any ( ( ( error [ 'reason' ] == 'rateLimitExceeded' ) for error in forbidden . _errors ) )
predicate: pass only exceptions with ratelimitexceeded as reason .