Xqt added a comment.
In T219094#10893587 <https://phabricator.wikimedia.org/T219094#10893587>, @Lichinsol wrote: > The site code "ary" does not exist in the moved_links dictionary, hence the error may have come. Only a code named "ar" exists. > > A similar error is coming even with the older version (when directly using moved_links dictionary) of cosmetic_changes.py, which may indicate that the issue may not be due to this change. The previous implementation raises a KeyError if the key (like 'ary') does not exist, The new implementation raises a TypeError when trying to unpack a NoneType object because i18n.translate() gives just None if the key was not found. The KeyError is only raised in translate() if //fallback// is True. Sorry I haven't checked this issue enough during review, TASK DETAIL https://phabricator.wikimedia.org/T219094 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
