diff --git a/src/PIL/ImageCms.py b/src/PIL/ImageCms.py index 71a5a5376..143e04bf5 100644 --- a/src/PIL/ImageCms.py +++ b/src/PIL/ImageCms.py @@ -269,7 +269,7 @@ class ImageCmsProfile: ), ) return None - msg = f"'{self.__class__.__name__}' has no attribute '{name}'" + msg = f"'{self.__class__.__name__}' object has no attribute '{name}'" raise AttributeError(msg) def tobytes(self) -> bytes: