Revision: 7581 Author: a_engels Date: 2009-11-02 18:34:37 +0000 (Mon, 02 Nov 2009)
Log Message: ----------- I got an error here; throwing a try...catch around it
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-11-02 17:38:54 UTC (rev 7580) +++ trunk/pywikipedia/interwiki.py 2009-11-02 18:34:37 UTC (rev 7581) @@ -870,7 +870,10 @@ return False if globalvar.nobackonly: if page == self.originPage: - pywikibot.output(u"%s has a backlink from %s."%(page,linkingPage)) + try: + pywikibot.output(u"%s has a backlink from %s."%(page,linkingPage)) + except UnicodeDecodeError: + pywikibot.output(u"Found a backlink for a page.") self.makeForcedStop(counter) return False
pywikipedia-svn@lists.wikimedia.org