Last modified: 2013-12-23 19:22:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60906, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58906 - 'page-exists' key error when uploading a file that has a local description page
'page-exists' key error when uploading a file that has a local description page
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-23 19:22 UTC by Kunal Mehta (Legoktm)
Modified: 2013-12-23 19:22 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-12-23 19:22:50 UTC
When trying to upload an image for which a local description page exists but no local file exists, an upload warning of 'page-exists' will be raised.

However that message isn't defined so it raises a KeyError while trying to raise the UploadWarning.

  File "/Users/km/projects/pwb-core/pywikibot/site.py", line 3268, in upload
    raise pywikibot.UploadWarning(upload_warnings[warning]
KeyError: u'page-exists'

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links