| Dalba added a comment. |
In T174870#3575904, @gerritbot wrote:Change 375612 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] get ItemPage content in WikidataBot.treat_page()
Now I'm getting this error:
Traceback (most recent call last): File "...\Python36\lib\unittest\case.py", line 59, in testPartExecutor yield File "...\Python36\lib\unittest\case.py", line 605, in run testMethod() File "...\pywikibot-core\tests\isbn_tests.py", line 245, in test_isbn main('-page:' + self.test_page_qid, '-always', '-to13') File "...\pywikibot-core\scripts\isbn.py", line 1670, in main bot.run() File "...\pywikibot-core\pywikibot\bot.py", line 1557, in run super(Bot, self).run() File "...\pywikibot-core\pywikibot\bot.py", line 1466, in run self.treat(page) File "...\pywikibot-core\pywikibot\bot.py", line 1757, in treat super(ExistingPageBot, self).treat(page) File "...\pywikibot-core\pywikibot\bot.py", line 1680, in treat self.treat_page() File "...\pywikibot-core\pywikibot\bot.py", line 2084, in treat_page self.treat_page_and_item(page, item) File "...\pywikibot-core\scripts\isbn.py", line 1628, in treat_page_and_item self.user_edit_entity(item, summary=self.comment) File "...\pywikibot-core\pywikibot\bot.py", line 1927, in user_edit_entity item._content if hasattr(item, '_content') else None)) File "...\pywikibot-core\pywikibot\page.py", line 4289, in toJSON data = super(ItemPage, self).toJSON(diffto=diffto) File "...\pywikibot-core\pywikibot\page.py", line 3880, in toJSON claim_ids.add(claim['id']) KeyError: 'id'
TASK DETAIL
EMAIL PREFERENCES
To: Xqt, Dalba
Cc: gerritbot, Dalba, murfel, m4tx, matej_suchanek, Aklapper, Xqt, pywikibot-bugs-list, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, jayvdb, Masti, Alchimista, Rxy
Cc: gerritbot, Dalba, murfel, m4tx, matej_suchanek, Aklapper, Xqt, pywikibot-bugs-list, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
