in rdklib/util/service.py [0:0]
def is_internal_error(exception):
return (
not isinstance(exception, botocore.exceptions.ClientError) or
exception.response['Error']['Code'].startswith('5') or
'InternalError' in exception.response['Error']['Code'] or
'ServiceError' in exception.response['Error']['Code']
)