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:
pywikipedia-l@lists.wikimedia.org