| Multichill created this task. Multichill added projects: Pywikibot-Wikidata, Wikidata. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
@daniel broke Pywikibot in T115269 . After some digging I found https://lists.wikimedia.org/pipermail/wikidata-tech/2016-November/001050.html
I'm not happy at all about upstream breaking pywikibot yet again.
Working on Q19160832
Traceback (most recent call last):
File "pwb.py", line 255, in <module>
if not main():
File "pwb.py", line 249, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 121, in run_python_file
main_mod.__dict__)
File "/home/mdammers/code/toollabs/bot/wikidata/painting_add_creator.py", line 320, in <module>
main()
File "/home/mdammers/code/toollabs/bot/wikidata/painting_add_creator.py", line 317, in main
paintingBot.run()
File "/home/mdammers/code/toollabs/bot/wikidata/painting_add_creator.py", line 156, in run
creatorItem = self.getCreator(creator)
File "/home/mdammers/code/toollabs/bot/wikidata/painting_add_creator.py", line 214, in getCreator
if (creatoritem.get().get('labels').get('en') and creatoritem.get().get('labels').get('en').lower() == creator.lower()) or (creatoritem.get().get('aliases').get('en') and creator in creatoritem.get().get('aliases').get('en')):
File "/home/mdammers/pywikibot/pywikibot/page.py", line 3923, in get
data = "" self).get(force, *args, **kwargs)
File "/home/mdammers/pywikibot/pywikibot/page.py", line 3538, in get
c = Claim.fromJSON(self.repo, claim)
File "/home/mdammers/pywikibot/pywikibot/page.py", line 4339, in fromJSON
claim.type, lambda value, site: value)(value, site)
File "/home/mdammers/pywikibot/pywikibot/page.py", line 4282, in <lambda>
'quantity': lambda value, site: pywikibot.WbQuantity.fromWikibase(value),
File "/home/mdammers/pywikibot/pywikibot/__init__.py", line 675, in fromWikibase
upperBound = cls._todecimal(wb['upperBound'])
KeyError: u'upperBound'
<type 'exceptions.KeyError'>
CRITICAL: Closing network session.TASK DETAIL
EMAIL PREFERENCES
To: Multichill
Cc: hoo, Ladsgroup, Lydia_Pintscher, Aklapper, Multichill, pywikibot-bugs-list, daniel, D3r1ck01, Izno, Wikidata-bugs, aude, Ricordisamoa, Wesalius, Mbch331
Cc: hoo, Ladsgroup, Lydia_Pintscher, Aklapper, Multichill, pywikibot-bugs-list, daniel, D3r1ck01, Izno, Wikidata-bugs, aude, Ricordisamoa, Wesalius, Mbch331
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
