Merge pull request #2640 from hugovk/version-newlines

Add newlines to error message for clarity
This commit is contained in:
wiredfool 2017-08-16 11:36:11 +01:00 committed by GitHub
commit c448db3170

View File

@ -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))