comparison 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
comparison
equal deleted inserted replaced
1541:685fad1c18e4 1542:94901070478e
35 35
36 from base64 import b64decode, b64encode 36 from base64 import b64decode, b64encode
37 from hashlib import sha1 37 from hashlib import sha1
38 from sat.core import exceptions 38 from sat.core import exceptions
39 from sat.memory import persistent 39 from sat.memory import persistent
40 from PIL import Image 40 try:
41 from PIL import Image
42 except:
43 raise exceptions.MissingModule(u"Missing module pillow, please download/install it from https://python-pillow.github.io")
41 from cStringIO import StringIO 44 from cStringIO import StringIO
42 45
43 try: 46 try:
44 from twisted.words.protocols.xmlstream import XMPPHandler 47 from twisted.words.protocols.xmlstream import XMPPHandler
45 except ImportError: 48 except ImportError: