Skip to content

Commit

Permalink
Better version detection for pillow
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jun 17, 2020
1 parent 96dae1f commit d68fc6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/appier_extras/parts/admin/part.py
Expand Up @@ -2302,7 +2302,9 @@ def _pil_loader(self, module):
versions = []
if hasattr(module, "VERSION"):
versions.append(("PIL", module.VERSION))
if hasattr(module, "PILLOW_VERSION"):
if hasattr(module, "__version__"):
versions.append(("Pillow", module.__version__))
elif hasattr(module, "PILLOW_VERSION"):
versions.append(("Pillow", module.PILLOW_VERSION))
return versions

Expand Down

0 comments on commit d68fc6e

Please sign in to comment.