More user-friendly import errors
This commit is contained in:
1 parent
75bc7c51b5
commit
fd493dba9a
2 files changed
+12
-2
No files matched your search
+6
-1
@@ -20,7 +20,12 @@ __copyright__ = '2012-2013, Ciro Mattia Gonano <ciromattia@gmail.com>, Pawel Jas
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import os
|
||||
from PIL import Image, ImageOps, ImageStat, ImageChops
|
||||
try:
|
||||
# noinspection PyUnresolvedReferences
|
||||
from PIL import Image, ImageOps, ImageStat, ImageChops
|
||||
except ImportError:
|
||||
print "ERROR: Pillow is not installed!"
|
||||
exit(1)
|
||||
|
||||
|
||||
class ImageFlags:
|
||||
|
||||
Reference in new issue
Block a user