def _raise_if_updates_provider_attributes(attrs):
 if any((validators.is_attr_set(attrs.get(a)) for a in ATTRIBUTES)):
  msg = _('Plugin does not support updating provider attributes')
  raise n_exc.InvalidInput(error_message=msg)

def _raise_if_updates_provider_attributes ( attrs ) : if any ( ( validators . is_attr_set ( attrs . get ( a ) ) for a in ATTRIBUTES ) ) : msg = _ ( 'Plugin does not support updating provider attributes' ) raise n_exc . InvalidInput ( error_message = msg )
raise exception if provider attributes are present .