Skip to content

Commit

Permalink
Removed logger exception
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 9, 2015
1 parent 26b66b8 commit 9014517
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions PIL/ImageFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -103,7 +100,6 @@ def __init__(self, fp=None, filename=None):
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:
Expand Down

0 comments on commit 9014517

Please sign in to comment.