Xqt created this task. Xqt added a subscriber: Xqt. Xqt added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION ``` ERROR: KeyError: u'lightpurple' Traceback (most recent call last): File "C:\pwb\GIT\core\pwb.py", line 226, in <module> if not main(): File "C:\pwb\GIT\core\pwb.py", line 220, in main run_python_file(filename, [filename] + args, argvu, file_package) File "C:\pwb\GIT\core\pwb.py", line 87, in run_python_file main_mod.__dict__) File ".\scripts\disambredir.py", line 101, in <module> main() File ".\scripts\disambredir.py", line 97, in main bot.run() File "C:\pwb\GIT\core\pywikibot\bot.py", line 1747, in run super(MultipleSitesBot, self).run() File "C:\pwb\GIT\core\pywikibot\bot.py", line 1561, in run self.treat(page) File "C:\pwb\GIT\core\pywikibot\bot.py", line 1775, in treat self.treat_page() File ".\scripts\disambredir.py", line 65, in treat_page self.current_page.site) File "C:\pwb\GIT\core\pywikibot\textlib.py", line 588, in replace_links replacement = replace(link, text, groups.copy(), rng) File "C:\pwb\GIT\core\pywikibot\bot.py", line 891, in __call__ answer = self.handle_link() File "C:\pwb\GIT\core\pywikibot\bot.py", line 942, in handle_link question.format(self._old.canonical_title()), KeyError: u'lightpurple' <type 'exceptions.KeyError'> ``` This might be coming from double string formating: ``` else: question += 'target to \03{{lightpurple}}{0}\03{{default}}?'.format( self._new.canonical_title()) # first formatting choice = pywikibot.input_choice( question.format(self._old.canonical_title()), ... # second formatting ``` TASK DETAIL https://phabricator.wikimedia.org/T104798 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, jayvdb, Malyacko, P.Copp _______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs