jenkins-bot has submitted this change and it was merged.
Change subject: titletranslate.py shouldn't check non-existed wikis ......................................................................
titletranslate.py shouldn't check non-existed wikis
Bug: T91906 Change-Id: I0bac37f9e744fff190d55e23735fc2bbe32ab3cc --- M pywikibot/titletranslate.py 1 file changed, 2 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/titletranslate.py b/pywikibot/titletranslate.py index 349c6c8..5b86032 100644 --- a/pywikibot/titletranslate.py +++ b/pywikibot/titletranslate.py @@ -98,6 +98,8 @@ u'TitleTranslate: %s was recognized as %s with value %d' % (page.title(), dictName, value)) for entryLang, entry in date.formats[dictName].items(): + if entryLang not in site.languages(): + continue if entryLang != sitelang: if (dictName == 'yearsBC' and entryLang in date.maxyearBC and