Revision: 4943
Author: russblau
Date: 2008-01-27 16:09:57 +0000 (Sun, 27 Jan 2008)
Log Message:
-----------
Fix (common) Python syntax error in last rev.
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-01-27 14:08:09 UTC (rev 4942)
+++ trunk/pywikipedia/wikipedia.py 2008-01-27 16:09:57 UTC (rev 4943)
@@ -2771,7 +2771,7 @@
line = line.split(' ')
pid = int(line[0])
ptime = int(line[1].split('.')[0])
- except IndexError, ValueError:
+ 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.
Show replies by date