Revision: 4942 Author: filnik Date: 2008-01-27 14:08:09 +0000 (Sun, 27 Jan 2008)
Log Message: ----------- Uhm, seems that this part gives both IndexError and ValueError! Fix
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-01-26 20:38:46 UTC (rev 4941) +++ trunk/pywikipedia/wikipedia.py 2008-01-27 14:08:09 UTC (rev 4942) @@ -2771,7 +2771,7 @@ line = line.split(' ') pid = int(line[0]) ptime = int(line[1].split('.')[0]) - except IndexError: + except IndexError, ValueError: # 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.