https://bugzilla.wikimedia.org/show_bug.cgi?id=71095
Bug ID: 71095 Summary: newitem.py broken after page.py update Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: major Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl CC: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
I just updated to the latest git version and now newitem.py stopped working:
HSM Salamander - Phoenix <<<
Traceback (most recent call last): File "C:\pywikibot\coredev\pwb.py", line 164, in <module> run_python_file(fn, argv, argvu) File "C:\pywikibot\coredev\pwb.py", line 69, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "C:\pywikibot\coredev\scripts\newitem.py", line 141, in <module> main() File "C:\pywikibot\coredev\scripts\newitem.py", line 138, in main bot.run() File "C:\pywikibot\coredev\scripts\newitem.py", line 68, in run item = pywikibot.ItemPage.fromPage(page) File "C:\pywikibot\coredev\pywikibot\page.py", line 3156, in fromPage raise pywikibot.NoPage(i) pywikibot.exceptions.NoPage: Page [[wikidata:-1]] doesn't exist. <class 'pywikibot.exceptions.NoPage'>
The behaviour of Page.fromPage was changed: https://git.wikimedia.org/blobdiff/pywikibot%2Fcore.git/431cb776cbdf0196b549...
Forgot to test downstream usage?