jenkins-bot has submitted this change and it was merged.
Change subject: Ignore obsolete sites from beeing processed ......................................................................
Ignore obsolete sites from beeing processed
Wikidata may contain links to obsolete sites which raises an error. Now we check this exception and ignore that site.
Change-Id: Ie0e7afbc2b17e4c56a6688203af03a4e5aa993a1 --- M scripts/featured.py 1 file changed, 6 insertions(+), 0 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/featured.py b/scripts/featured.py index bffea39..2a24c43 100644 --- a/scripts/featured.py +++ b/scripts/featured.py @@ -312,6 +312,9 @@ except KeyboardInterrupt: pywikibot.output('\nQuitting featured treat...') break + except pywikibot.NoSuchSite: + pywikibot.output('"%s" is not a valid site. Skipping...' % code) + continue self.writecache()
# not implemented yet @@ -349,6 +352,9 @@ except KeyboardInterrupt: pywikibot.output('\nQuitting featured treat...') break + except pywikibot.NoSuchSite: + pywikibot.output('"%s" is not a valid site. Skipping...' % code) + continue self.writecache()
def treat(self, code, process):
pywikibot-commits@lists.wikimedia.org