1. Christopher Grebs
  2. lodgeit-main

Commits

David Baumgold  committed 4be87a8

Updated PIL imports for 1.1.7

  • Participants
  • Parent commits a0602f8
  • Branches lodgeit

Comments (0)

Files changed (1)

File lodgeit/lib/captcha.py

View file
 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