mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-07 22:04:46 +03:00
Restored error message
This commit is contained in:
parent
6ed83ac464
commit
e269512038
|
@ -90,4 +90,5 @@ def __getattr__(name: str):
|
|||
from . import Image
|
||||
|
||||
return Image.Image
|
||||
raise AttributeError
|
||||
msg = f"module 'PIL' has no attribute '{name}'"
|
||||
raise AttributeError(msg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user