https://bugzilla.wikimedia.org/show_bug.cgi?id=68659
Bug ID: 68659
Summary: imagetransfer fails badly if specified page does not
begin with correct namespace
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
$ python pwb.py imagetransfer -family:wikipedia -lang:en
"Joachim_Holst-Jensen_1923.jpg"
Traceback (most recent call last):
File "pwb.py", line 157, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/imagetransfer.py", line 356, in <module>
main()
File "scripts/imagetransfer.py", line 353, in main
bot.run()
File "scripts/imagetransfer.py", line 273, in run
{'title': page.title(), 'ns': pywikibot.Site().image_namespace()})
File ".../pywikibot/data/api.py", line 856, in result
p = PageGenerator.result(self, pagedata)
File ".../pywikibot/data/api.py", line 840, in result
update_page(p, pagedata)
File ".../pywikibot/data/api.py", line 996, in update_page
"Page %s has neither 'pageid' nor 'missing' attribute" %
pagedict['title'])
AssertionError: Page Joachim Holst-Jensen 1923.jpg has neither 'pageid' nor
'missing' attribute
<type 'exceptions.AssertionError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.