def Validate(self):
    try:
      Attribute.GetAttributeByName(self._value)
    except (AttributeError, __HOLE__):
      raise type_info.TypeValueError(
          "Value %s is not an AFF4 attribute name" % self._value)
dataset/ETHPy150Open google/grr/grr/lib/aff4.py/AFF4Attribute.Validate