Bugs item #1965938, was opened at 2008-05-17 13:35 Message generated for change (Comment added) made by nicdumz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1965938...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update.
Category: General
Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody)
Assigned to: NicDumZ — Nicolas Dumazet (nicdumz) Summary: templateWithParams does not handle bad template names
Initial Comment:
interwiki.py -lang:de -family:wiktionary -wiktionary Loyalität
Checked for running processes. 2 processes currently running, including the current process. Getting 1 pages from wiktionary:de... Dump de (wiktionary) saved Traceback (most recent call last): File "D:\Work\pywikipediabot-HEAD\pywikipedia\interwiki.py", line 1712, in <mo dule> bot.run() File "D:\Work\pywikipediabot-HEAD\pywikipedia\interwiki.py", line 1463, in run
self.queryStep() File "D:\Work\pywikipediabot-HEAD\pywikipedia\interwiki.py", line 1437, in que ryStep self.oneQuery() File "D:\Work\pywikipediabot-HEAD\pywikipedia\interwiki.py", line 1433, in one Query subject.workDone(self) File "D:\Work\pywikipediabot-HEAD\pywikipedia\interwiki.py", line 772, in work Done (skip, alternativePage) = self.disambigMismatch(page) File "D:\Work\pywikipediabot-HEAD\pywikipedia\interwiki.py", line 641, in disa mbigMismatch if self.originPage.isDisambig() and not page.isDisambig(): File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 991, in isDi sambig foo = self.templates() File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 1678, in tem plates return [template for (template, param) in self.templatesWithParams()] File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 1738, in tem platesWithParams name = Page(self.site(), name).title() File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 327, in __in it__ t = url2unicode(t, site = insite, site2 = site) File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 3626, in url 2unicode raise firstException UnicodeDecodeError: 'utf8' codec can't decode bytes in position 7-8: unexpected end of data
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-05-17 16:35
Message: Logged In: YES user_id=1963242 Originator: NO
Thanks for the bug report !
The article contained an invalid template, "{{Loyalit%E4t}}", and it appears that bad titles were not handled properly.
This has been fixed in r5392 :)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1965938...
pywikipedia-l@lists.wikimedia.org