Fix wheezy captcha import

This commit is contained in:
Hsiaoming Yang
2014-11-27 14:34:48 +08:00
parent 8450941874
commit 8aeb57b7ac

View File

@@ -14,7 +14,7 @@ from PIL.ImageDraw import Draw
from PIL.ImageFont import truetype
from io import BytesIO
try:
from wheezy import captcha as wheezy_captcha
from wheezy.captcha import image as wheezy_captcha
except ImportError:
wheezy_captcha = None