zulip_bots: Fix yoda bot response parsing.

This commit is contained in:
Robert Hönig 2017-11-27 15:57:05 +01:00 committed by showell
parent 13d181cd09
commit 41d8ffc20e

View file

@ -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: