plugins: added new MissingModule exceptions to plugins using third party modules
This commit is contained in:
parent
72b108f3a2
commit
969af13f59
1 changed files with 29 additions and 11 deletions
|
|
@ -37,7 +37,10 @@ from base64 import b64decode, b64encode
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue