Commits

Anonymous committed 4be87a8

Updated PIL imports for 1.1.7

Comments (0)

Files changed (1)

lodgeit/lib/captcha.py

 import math
 from os import listdir
 from os.path import abspath, join, dirname, pardir
-from PIL import ImageFont, ImageDraw, Image, ImageChops, ImageColor
+try:
+    from PIL import ImageFont, ImageDraw, Image, ImageChops, ImageColor
+except ImportError:
+    import ImageFont, ImageDraw, Image, ImageChops, ImageColor
 from werkzeug import Response
 from lodgeit import local