jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/337861 )
Change subject: Use imported InvalidTitle ......................................................................
Use imported InvalidTitle
InvalidTitle is imported and should be used instead of the intrinsic pywikibot.InvalidTitle
Change-Id: I7647df56085431dd2e25417b4ca79b638c066b74 --- M pywikibot/textlib.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py index c8e2926..03d8da4 100644 --- a/pywikibot/textlib.py +++ b/pywikibot/textlib.py @@ -868,7 +868,7 @@ if previous_key_count == len(result): pywikibot.warning('[getLanguageLinks] 2 or more interwiki ' 'links point to site %s.' % site) - except pywikibot.InvalidTitle: + except InvalidTitle: pywikibot.output(u'[getLanguageLinks] Text contains invalid ' u'interwiki link [[%s:%s]].' % (lang, pagetitle))
pywikibot-commits@lists.wikimedia.org