From a4212632b2e6f71b97d64785a20d276fa41af602 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Fri, 15 May 2009 03:56:11 +0100 Subject: [svn] Make the workaround to avoid parsing interlaced pngs actually work (see issue # 14) --- parsers/surveys.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'parsers/surveys.py') diff --git a/parsers/surveys.py b/parsers/surveys.py index e2a502d..351e292 100644 --- a/parsers/surveys.py +++ b/parsers/surveys.py @@ -126,5 +126,8 @@ def parseSurveys(logfile=None): def isInterlacedPNG(filePath): #We need to check for interlaced PNGs because the thumbnail engine can't handle them (uses PIL) file=Image.open(filePath) - return file.info['interlace'] - \ No newline at end of file + print filePath + if 'interlace' in file.info: + return file.info['interlace'] + else: + return False \ No newline at end of file -- cgit v1.2.3