- **status**: open --> closed-fixed - **assigned_to**: Russell Blau --> Legoktm - **Group**: --> confirmed
---
** [bugs:#1622] error when encounter API Warning (Wikidata)**
**Status:** closed-fixed **Labels:** rewrite **Created:** Sun Apr 21, 2013 12:21 PM UTC by Nullzer0 **Last Updated:** Wed Jul 10, 2013 05:36 PM UTC **Owner:** Legoktm
File "/home/sorawee/rewrite/pywikibot/page.py", line 2340, in editEntity baserevid=baserevid, **kwargs) File "/home/sorawee/rewrite/pywikibot/site.py", line 3365, in editEntity data = req.submit() File "/home/sorawee/rewrite/pywikibot/data/api.py", line 357, in submit % (mod, result["warnings"][mod]["*"])) KeyError: '*'
So I changed api.py to "% (mod, result["warnings"][mod]))", what I get is
WARNING: API warning (messages): {u'0': {u'type': u'warning', u'name': u'edit-no-change'}, u'html': {u'*': u'<p>Your edit was ignored because no change was made to the text.\n</p>'}}
---- Pywikibot branches/rewrite/ (r11404, 2013/04/21, 09:25:43, OUTDATED) Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] unicode test: ok
---
Sent from sourceforge.net because Pywikipedia-bugs@lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
pywikipedia-bugs@lists.wikimedia.org