From bfa98a01f176fa6b758fb7f39cf900e222e93d67 Mon Sep 17 00:00:00 2001 From: Florian Schweikert Date: Sat, 24 Sep 2011 16:19:24 +0200 Subject: [PATCH] fixed small python 2.5 incompatibility --- scotty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scotty.py b/scotty.py index cf52b13..060ea52 100644 --- a/scotty.py +++ b/scotty.py @@ -234,8 +234,8 @@ if __name__ == '__main__': overviews = parser.overview for overview in overviews: print '[%s] %s-%s (%s)' % (overview['date'], overview['time'][0], overview['time'][1], overview['duration']) - except ParserError as e: - print e.message + except ParserError: + print 'parsererror' elif state == PageType.CORRECTION: try: cor = parser.get_correction() -- 1.7.9.5