Skip to content

Commit 01e0b00

Browse files
authored
Updated error message
1 parent 78e54c1 commit 01e0b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/ImageCms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def __getattr__(self, name: str) -> Any:
262262
if name in ("product_name", "product_info"):
263263
deprecate(f"ImageCms.ImageCmsProfile.{name}", 13)
264264
return None
265-
msg = f"'{self.__class__.__name__}' has no attribute '{name}'"
265+
msg = f"'{self.__class__.__name__}' object has no attribute '{name}'"
266266
raise AttributeError(msg)
267267

268268
def tobytes(self) -> bytes:

0 commit comments

Comments
 (0)