mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-08 06:14:45 +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
|
from . import Image
|
||||||
|
|
||||||
return Image.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