[Pywikipedia-l] SVN: [6593] trunk/pywikipedia/copyright.py
cosoleto at svn.wikimedia.org
cosoleto at svn.wikimedia.org
Sat Apr 11 22:00:25 UTC 2009
Revision: 6593
Author: cosoleto
Date: 2009-04-11 22:00:25 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
Catch wikipedia.SectionError
Modified Paths:
--------------
trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py 2009-04-11 21:54:00 UTC (rev 6592)
+++ trunk/pywikipedia/copyright.py 2009-04-11 22:00:25 UTC (rev 6593)
@@ -1020,6 +1020,9 @@
bot = CheckRobot(iter([newpage,]))
bot.run()
continue
+ except wikipedia.SectionError:
+ error("Page %s has no section %s" % (page.title(), page.section()))
+ continue
if skip_disambig:
if page.isDisambig():
More information about the Pywikipedia-l
mailing list