https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
John Mark Vandenberg <jayvdb(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |69069
Depends on| |68645
OS|Linux |All
--- Comment #3 from John Mark Vandenberg <jayvdb(a)gmail.com> ---
It definitely needs to provide a nicer set of errors. If Site.upload()
requires a summary, then upload.py should get one from the user before calling
Site.upload()
$ python pwb.py -family:wikidata -lang:wikidata scripts/upload.py
No input filename given
File or URL where image is now: blahblah.png
The filename on the target wiki will default to: blahblah.png
Enter a better name, or press enter to accept:
The suggested description is:
Do you want to change this description? ([y]es, [N]o) y
Could not load GUI modules: No module named gui
Uploading file to wikidata:wikidata via API....
Reading file blahblah.png
ERROR: Upload error:
Traceback (most recent call last):
File "scripts/upload.py", line 216, in upload_image
ignore_warnings=self.ignoreWarning)
File ".../pywikibot/site.py", line 3399, in upload
raise ValueError("APISite.upload: cannot upload file without "
ValueError: APISite.upload: cannot upload file without a summary/description.
--
You are receiving this mail because:
You are the assignee for the bug.