From: Florian Schweikert Date: Sat, 24 Sep 2011 14:19:24 +0000 (+0200) Subject: fixed small python 2.5 incompatibility X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=bfa98a01f176fa6b758fb7f39cf900e222e93d67;p=pywienerlinien fixed small python 2.5 incompatibility --- 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()