From 901451760226ef9b05e0e3e4a9a6013141fb4476 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 10 Dec 2015 08:39:26 +1100 Subject: [PATCH] Removed logger exception --- PIL/ImageFile.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/PIL/ImageFile.py b/PIL/ImageFile.py index f26a7260e9a..9617ffb3b66 100644 --- a/PIL/ImageFile.py +++ b/PIL/ImageFile.py @@ -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 @@ 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: