Mercurial > libervia-backend
diff src/plugins/plugin_xep_0054.py @ 1542:94901070478e
plugins: added new MissingModule exceptions to plugins using third party modules
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 30 Sep 2015 17:25:09 +0200 |
parents | a568fc14ab46 |
children | 61391d863709 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0054.py Wed Sep 30 17:24:21 2015 +0200 +++ b/src/plugins/plugin_xep_0054.py Wed Sep 30 17:25:09 2015 +0200 @@ -37,7 +37,10 @@ from hashlib import sha1 from sat.core import exceptions from sat.memory import persistent -from PIL import Image +try: + from PIL import Image +except: + raise exceptions.MissingModule(u"Missing module pillow, please download/install it from https://python-pillow.github.io") from cStringIO import StringIO try: