From c3dc5b9448ca2fe6478a133bf7af7e4ac95114cf Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Sun, 13 Jul 2025 15:45:47 +1000 Subject: [PATCH] Updated error message --- src/PIL/ImageCms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: