Fix PIL import

This commit is contained in:
Kovid Goyal 2013-06-17 09:29:56 +05:30
parent 1bada2b35b
commit 7a0675e59a

View File

@ -85,8 +85,15 @@ def getimagesize(url):
""" """
try:
from PIL import ImageFile
except ImportError:
try: try:
import ImageFile import ImageFile
except ImportError:
return None
try:
import urllib2 import urllib2
except ImportError: except ImportError:
return None return None