def GetPropertyClassKeywordAttribute(propertyClass, attribute):
    """ Get the keyword attribute from the property class """
    if hasattr(propertyClass, 'keywords'):
        # starting with blender 2.93 use keywords
        return propertyClass.keywords[attribute]
    else:
        # no longer supported as of blender 2.93
        return propertyClass[1][attribute]