[Pywikipedia-l] SVN: [4940] trunk/pywikipedia/wikipedia.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Sat Jan 26 12:57:10 UTC 2008


Revision: 4940
Author:   filnik
Date:     2008-01-26 12:57:10 +0000 (Sat, 26 Jan 2008)

Log Message:
-----------
ValueError -> IndexError. Only a typo.

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-01-25 16:20:29 UTC (rev 4939)
+++ trunk/pywikipedia/wikipedia.py	2008-01-26 12:57:10 UTC (rev 4940)
@@ -2771,7 +2771,7 @@
                     line = line.split(' ')
                     pid = int(line[0])
                     ptime = int(line[1].split('.')[0])
-                except ValueError:
+                except IndexError:
                     # I go a lot of crontab errors because line is not a number.
                     # Better to prevent that. If you find out the error, feel free
                     # to fix it better.





More information about the Pywikipedia-l mailing list