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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
       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/431cb776cbdf0196b5498a98ea805e81acdf08bb/pywikibot%2Fpage.py

Forgot to test downstream usage?

-- 
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

Reply via email to