bots: Fix test failure for Baremetrics bot.

This commit is contained in:
Viraat Chandra 2018-01-23 23:01:59 +05:30 committed by Robert Hönig
parent 3cbb16722d
commit d9fca54998

View file

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