https://bugzilla.wikimedia.org/show_bug.cgi?id=65309
Bug ID: 65309
Summary: newitem.py crash on non-existing page
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 there is non-existing page (like with pagegenerator -links:) bot crashes:
I:\py\rewrite>pwb.py newitem -links:Přibyslav -namespace:0 -lang:cs
Retrieving 50 pages from wikipedia:cs.
Processing [[cs:Glej]]
Traceback (most recent call last):
File "I:\py\rewrite\pwb.py", line 143, in <module>
run_python_file(fn, argv, argvu)
File "I:\py\rewrite\pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "I:\py\rewrite\scripts\newitem.py", line 111, in <module>
main()
File "I:\py\rewrite\scripts\newitem.py", line 108, in main
bot.run()
File "I:\py\rewrite\scripts\newitem.py", line 58, in run
elif page.editTime() > self.lastEditBefore:
File "I:\py\rewrite\pywikibot\page.py", line 456, in editTime
rev = self.latestRevision()
File "I:\py\rewrite\pywikibot\page.py", line 371, in latestRevision
self.site.loadrevisions(self)
File "I:\py\rewrite\pywikibot\site.py", line 1826, in loadrevisions
raise NoPage(page)
pywikibot.exceptions.NoPage
<class 'pywikibot.exceptions.NoPage'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
I:\py\rewrite>
--
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