Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/139794

Change subject: (bug 66619) Ignore TypeError for bug 46535
......................................................................

(bug 66619) Ignore TypeError for bug 46535

In addition this should give some hints to this bug

Change-Id: I7dc2c03ce0d84ea2d5c36170998253b4b8fed3ae
---
M pywikibot/data/api.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/94/139794/1

diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 157a99b..34e75ff 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -412,7 +412,7 @@
             if code == "failed-save" and action == 'wbeditentity':
                 try:
                     message = result["error"]["messages"]["0"]["name"]
-                except KeyError:
+                except (KeyError, TypeError):
                     message = None
                 if message == u'edit-already-exists':
                     self.wait()

-- 
To view, visit https://gerrit.wikimedia.org/r/139794
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7dc2c03ce0d84ea2d5c36170998253b4b8fed3ae
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to