fixed small python 2.5 incompatibility
authorFlorian Schweikert <kelvan@logic.at>
Sat, 24 Sep 2011 14:19:24 +0000 (16:19 +0200)
committerFlorian Schweikert <kelvan@logic.at>
Sat, 24 Sep 2011 14:19:24 +0000 (16:19 +0200)
scotty.py

index cf52b13..060ea52 100644 (file)
--- 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()