https://bugzilla.wikimedia.org/show_bug.cgi?id=66523
Bug ID: 66523 Summary: harvest_template reports error when wikidata item does not exists: Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jan.dudik@gmail.com Web browser: --- Mobile Platform: ---
When harvesting from some category, there are sometimes new articles which have not own wikidatat item yet. This pages were normally skipped. After some changes there are now error reports which are annoying and makes terminal window hardly readable:
harvest_template -template:Commonscat "1" P373
Processing [[cs:Kostel svatého Ducha (Krupka)]] [[cs:Kostel svateho Ducha (Krupka)]] doesn't have a wikidata item :( ERROR: NoPage: Page [[wikidata:-1]] doesn't exist. Traceback (most recent call last): File "D:\Py\rewrite\scripts\harvest_template.py", line 66, in run self.processPage(page) File "D:\Py\rewrite\scripts\harvest_template.py", line 122, in processPage item.get() File "D:\Py\rewrite\pywikibot\page.py", line 2632, in get super(ItemPage, self).get(force=force, *args) File "D:\Py\rewrite\pywikibot\page.py", line 2470, in get raise pywikibot.NoPage(self) NoPage: Page [[wikidata:-1]] doesn't exist.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66523
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |info@gno.de Assignee|Pywikipedia-bugs@lists.wiki |info@gno.de |media.org |
pywikipedia-bugs@lists.wikimedia.org