mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix PIL import
This commit is contained in:
parent
1bada2b35b
commit
7a0675e59a
@ -86,7 +86,14 @@ def getimagesize(url):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import ImageFile
|
from PIL import ImageFile
|
||||||
|
except ImportError:
|
||||||
|
try:
|
||||||
|
import ImageFile
|
||||||
|
except ImportError:
|
||||||
|
return None
|
||||||
|
|
||||||
|
try:
|
||||||
import urllib2
|
import urllib2
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user