XZise added a comment.
This by the way won't probably cause errors (apart from missing translations)
unless the string used `%s` before but now isn't. Then something like this
happens:
Traceback (most recent call last):
File "pwb.py", line 246, in <module>
if not main():
File "pwb.py", line 240, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 87, in run_python_file
main_mod.__dict__)
File "./scripts/category.py", line 1281, in <module>
main()
File "./scripts/category.py", line 1270, in main
bot.run()
File "./scripts/category.py", line 550, in run
self._movecat()
File "./scripts/category.py", line 656, in _movecat
comment = i18n.twtranslate(self.site, 'category-renamed', template_vars)
File "./pywikibot/i18n.py", line 510, in twtranslate
return trans % parameters
TypeError: not enough arguments for format string
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
This is happening because the old text contains multiple instances of `%s` but
the current code is supplying a dictionary which is interpreted as one value so
an exception occurs that the remaining `%s` couldn't be defined.
TASK DETAIL
https://phabricator.wikimedia.org/T107195
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Aklapper, pywikibot-bugs-list, XZise, jayvdb, Malyacko, P.Copp
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs