Merge pull request #1590 from radarhere/exception

Removed logger.exception from ImageFile.py
This commit is contained in:
wiredfool 2015-12-14 20:46:42 +00:00
commit 5fa4e495a9

View File

@ -30,13 +30,10 @@
from PIL import Image
from PIL._util import isPath
import io
import logging
import os
import sys
import struct
logger = logging.getLogger(__name__)
MAXBLOCK = 65536
SAFEBLOCK = 1024*1024
@ -103,7 +100,6 @@ class ImageFile(Image.Image):
KeyError, # unsupported mode
EOFError, # got header but not the first frame
struct.error) as v:
logger.exception("%s")
raise SyntaxError(v)
if not self.mode or self.size[0] <= 0: