jenkins-bot has submitted this change and it was merged.
Change subject: [i18n] Don't check whether a summary message exists ......................................................................
[i18n] Don't check whether a summary message exists
The edit summary is i18n and not a L10N. There is no reason to check whether a message exists for a given language code because the there is a fallback to at least en language.
Change-Id: I00901866a3da5b1132e13f1e050a1175eb56e3aa --- M scripts/redirect.py 1 file changed, 2 insertions(+), 4 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py index 2fa2c83..b800647 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -489,10 +489,8 @@ assert targetPage.site == self.site, ( u'target page is on different site %s' % targetPage.site) - if (self.has_valid_template( - 'redirect-broken-redirect-template') and - i18n.twhas_key(targetPage.site, - 'redirect-remove-broken')): + if self.has_valid_template( + 'redirect-broken-redirect-template'): pywikibot.output(u"No sysop in user-config.py, " u"put page to speedy deletion.") content = redir_page.get(get_redirect=True)