[Pywikipedia-l] SVN: [4934] trunk/pywikipedia/interwiki.py
rotem at svn.wikimedia.org
rotem at svn.wikimedia.org
Thu Jan 24 17:58:27 UTC 2008
Revision: 4934
Author: rotem
Date: 2008-01-24 17:58:27 +0000 (Thu, 24 Jan 2008)
Log Message:
-----------
(bug 1877535) Don't crash for sites that don't exist.
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py 2008-01-24 17:42:13 UTC (rev 4933)
+++ trunk/pywikipedia/interwiki.py 2008-01-24 17:58:27 UTC (rev 4934)
@@ -703,6 +703,8 @@
self.todo = []
self.done = [] # In some rare cases it might be we already did check some 'automatic' links
pass
+ except Wikipedia.NoSuchSite:
+ wikipedia.output(u"NOTE: site %s does not exist" % page.site())
#except wikipedia.SectionError:
# wikipedia.output(u"NOTE: section %s does not exist" % page.aslink())
else:
More information about the Pywikipedia-l
mailing list