From 41d8ffc20efe4f5daa89831b2ac86a5e91b9e9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6nig?= Date: Mon, 27 Nov 2017 15:57:05 +0100 Subject: [PATCH] zulip_bots: Fix yoda bot response parsing. --- zulip_bots/zulip_bots/bots/yoda/yoda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/bots/yoda/yoda.py b/zulip_bots/zulip_bots/bots/yoda/yoda.py index 843052e..6fe8396 100644 --- a/zulip_bots/zulip_bots/bots/yoda/yoda.py +++ b/zulip_bots/zulip_bots/bots/yoda/yoda.py @@ -67,7 +67,7 @@ class YodaSpeakHandler(object): ) if response.status_code == 200: - return response.text + return response.json()['text'] if response.status_code == 403: raise ApiKeyError if response.status_code == 503: