From 799953e7df77dfd3b4ffcba0c3d3b09907a68b86 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Tue, 4 Mar 2014 19:21:08 -0500 Subject: [PATCH] jabber_mirror: Fix Zulip error handling (imported from commit 8548576635e5be9b725e059c2d4d9ef9953ec97a) --- bots/jabber_mirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/jabber_mirror.py b/bots/jabber_mirror.py index a5dd024..1bba081 100755 --- a/bots/jabber_mirror.py +++ b/bots/jabber_mirror.py @@ -155,7 +155,7 @@ class JabberToZulipBot(ClientXMPP): content = msg["body"], ) ret = self.zulip.client.send_message(zulip_message) - if ret.get("status") != "success": + if ret.get("result") != "success": logging.error(ret) def group(self, msg): @@ -182,7 +182,7 @@ class JabberToZulipBot(ClientXMPP): content = msg["body"], ) ret = self.zulip.client.send_message(zulip_message) - if ret.get("status") != "success": + if ret.get("result") != "success": logging.error(ret) def nickname_to_jid(self, room, nick):