Page MenuHomePhabricator

KeyError 'user' in wikipedia.getLatestUploader
Closed, DeclinedPublic

Description


Version: compat-(1.0)
Severity: normal

Details

Reference
bz56827

Event Timeline

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

Can you please indicate the exact steps to reproduce the error?

Sorry, here is the traceback:

Waiting for 60 seconds,

Loading the allowed licenses...

Loading Kategorie:Vorlage:Lizenz für Bilder...

No additional settings found! <<

Skipping the files uploaded less than 60 seconds ago.. 16 Okt 2013 21:53:37 (UTC
)
No image in imagepage
Execution time: 57819 seconds

Traceback (most recent call last):

File "C:\pwb\compat\checkimages.py", line 1952, in <module>
  main()
File "C:\pwb\compat\checkimages.py", line 1921, in main
  generator = Bot.wait(waitTime, generator, normal, limit)
File "C:\pwb\compat\checkimages.py", line 1525, in wait
  timestamp = image.getLatestUploader()[1]
File "C:\pwb\compat\wikipedia.py", line 4952, in getLatestUploader
  return [self._latestInfo['user'], self._latestInfo['timestamp']]

KeyError: 'user'

Seems there is an image description without the image itself

Aklapper lowered the priority of this task from Medium to Lowest.Jun 5 2015, 1:41 PM
Aklapper subscribed.

Pywikibot has two versions: Compat and Core. This task was filed about the older version, called Pywikibot-compat, which is not under active development anymore. Hence I'm lowering the priority of this task to reflect the reality. Unfortunately, the Pywikibot team does not have the manpower to retest every single bug report / feature request against the (maintained) Pywikibot code base. Furthermore, the code base of Pywikibot-Compat has changed a lot compared to the code base of Pywikibot-Core so there is a chance that the problem described in this task might not exist anymore. Please help: Unfortunately manpower is limited and does not allow testing every single reported task again. If you have time and interest in Pywikibot, please upgrade to Pywikibot-Core and add a comment to this task if the problem in this task still happens in Pywikibot-Core (or directly edit the task by removing the Pywikibot-compat project and adding the Pywikibot project to this task). To learn more about Pywikibot and to get involved in its development, please check out https://www.mediawiki.org/wiki/Manual:Pywikibot/Development Thank you for your understanding.

jayvdb removed a project: Pywikibot-General.
jayvdb set Security to None.
Xqt claimed this task.

username was hidden. We have a similar problem in core but patches are in review.