zulip_bots: Fix yoda bot response parsing.
This commit is contained in:
parent
13d181cd09
commit
41d8ffc20e
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue