From d9fca549986c77e0722584c6a835f93c15b64059 Mon Sep 17 00:00:00 2001 From: Viraat Chandra Date: Tue, 23 Jan 2018 23:01:59 +0530 Subject: [PATCH] bots: Fix test failure for Baremetrics bot. --- zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py b/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py index 0ebfc9f..b804341 100644 --- a/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py +++ b/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py @@ -33,7 +33,7 @@ class BaremetricsHandler(object): test_query_data = test_query_response.json() try: - if test_query_data['error'] == "Unauthorized. Token not found": + if test_query_data['error'] == "Unauthorized. Token not found (001)": bot_handler.quit('API Key not valid. Please see doc.md to find out how to get it.') except KeyError: pass