jenkins-bot submitted this change.

View Change

Approvals: Meno25: Looks good to me, approved jenkins-bot: Verified
[bugfix] Ignore InvalidTitleError in CommonscatBot.findCommonscatLink

Bug: T291783
Change-Id: I0c18a0895ca246bba8f536880c344cf151ea4f8e
---
M scripts/commonscat.py
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/commonscat.py b/scripts/commonscat.py
index 121ae81..4cef4a3 100755
--- a/scripts/commonscat.py
+++ b/scripts/commonscat.py
@@ -369,7 +369,13 @@
for ipageLink in page.langlinks():
ipage = pywikibot.page.Page(ipageLink)
pywikibot.log('Looking for template on ' + ipage.title())
- if (not ipage.exists() or ipage.isRedirectPage()
+ try: # T291783
+ ipage_exists = ipage.exists()
+ except InvalidTitleError:
+ pywikibot.exception()
+ continue
+
+ if (not ipage_exists or ipage.isRedirectPage()
or ipage.isDisambig()):
continue


To view, visit change 729498. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0c18a0895ca246bba8f536880c344cf151ea4f8e
Gerrit-Change-Number: 729498
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Meno25 <meno25mail@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged