Fix fallback logic in sphinx.utils.images:get_image_size()

This commit is contained in:
Takeshi KOMIYA committed 2016-02-12 13:54:04 +09:00
1 parent 906bf68cd8
commit e48dd0e14b
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ def get_image_size(filename):
if size[0] == -1:
size = None
if Image: # fallback to PIL
if size is None and Image: # fallback to PIL
im = Image.open(filename)
size = im.size
try: