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: [email protected]
Reporter: [email protected]
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l