mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-27 21:44:14 +03:00
Merge pull request #2640 from hugovk/version-newlines
Add newlines to error message for clarity
This commit is contained in:
commit
c448db3170
|
@ -56,8 +56,9 @@ try:
|
|||
from . import _imaging as core
|
||||
if PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None):
|
||||
raise ImportError("The _imaging extension was built for another "
|
||||
"version of Pillow or PIL: Core Version: %s"
|
||||
"Pillow Version: %s" %
|
||||
"version of Pillow or PIL:\n"
|
||||
"Core version: %s\n"
|
||||
"Pillow version: %s" %
|
||||
(getattr(core, 'PILLOW_VERSION', None),
|
||||
PILLOW_VERSION))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user