| Xqt added a comment. |
The behavior must have been changed. The new error is:
C:\pwb\GIT\core>py -2 pwb.py isbn_tests -v TestIsbnWikibaseBot.test_isbn_to13 tests: max_retries reduced from 15 to 1 test_isbn_to13 (__main__.TestIsbnWikibaseBot) Test to13 using the bot and wikibase. ... Assuming that ISBN-10 property is P360 . Assuming that ISBN-13 property is P366. WARNING: IsbnWikibaseBot.__init__ set the Bot.site property; this is only needed when the Bot accesses many sites. Retrieving 1 pages from wikidata:test.
>>> Q943 <<<
Changing P360 (ISBN 097522980x) to P366 (ISBN 978-0975229804)
0 pages read
0 pages written
Execution time: 0 seconds
Script terminated by exception:
ERROR: KeyError: u'id'
ERROR
======================================================================
ERROR: test_isbn_to13 (__main__.TestIsbnWikibaseBot)
Test to13 using the bot and wikibase.
----------------------------------------------------------------------
Traceback (most recent call last):
File ".\tests\isbn_tests.py", line 290, in test_isbn_to13
main('-page:' + self.test_page_qid, '-always', '-to13')
File "C:\pwb\GIT\core\scripts\isbn.py", line 1676, in main
bot.run()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1597, in run
super(Bot, self).run()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1505, in run
self.treat(page)
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1732, in treat
self.treat_page()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 2197, in treat_page
self.treat_page_and_item(page, item)
File "C:\pwb\GIT\core\scripts\isbn.py", line 1634, in treat_page_and_item
self.user_edit_entity(item, summary=self.comment)
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1972, in user_edit_entity
item._content if hasattr(item, '_content') else None))
File "C:\pwb\GIT\core\pywikibot\page.py", line 4491, in toJSON
data = "" self).toJSON(diffto=diffto)
File "C:\pwb\GIT\core\pywikibot\page.py", line 4031, in toJSON
claim_ids.add(claim['id'])
KeyError: u'id'
----------------------------------------------------------------------
Ran 1 test in 4.071s
FAILED (errors=1)
C:\pwb\GIT\core>TASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: TerraCodes, gerritbot, Dalba, murfel, m4tx, matej_suchanek, Aklapper, Xqt, pywikibot-bugs-list, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Luke081515, mys_721tx, jayvdb, Masti, Alchimista, Rxy
Cc: TerraCodes, gerritbot, Dalba, murfel, m4tx, matej_suchanek, Aklapper, Xqt, pywikibot-bugs-list, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Luke081515, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
