Page MenuHomePhabricator

'page-exists' key error when uploading a file that has a local description page
Closed, ResolvedPublic

Description

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'


Version: core-(2.0)
Severity: normal

Details

Reference
bz58906

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:22 AM
bzimport set Reference to bz58906.
bzimport added a subscriber: Unknown Object (????).