- attributes = Attributes(self.api, [attribute_id_or_name]).values()
- if not attributes:
- raise PLCInvalidArgument, "No such attribute"
- attribute = attributes[0]
+ attribute_types = SliceAttributeTypes(self.api, [attribute_type_id_or_name]).values()
+ if not attribute_types:
+ raise PLCInvalidArgument, "No such slice attribute type"
+ attribute_type = attribute_types[0]