From 650f9b215cf56fd11c2c3bfc829e5cd2e829f183 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Mon, 7 Sep 2015 07:38:30 +0900 Subject: [PATCH] Fix itbit --- plugins/exchange_rate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index 4b966873..cca17d77 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -186,7 +186,8 @@ class itBit(ExchangeBase): ccys = ['USD', 'EUR', 'SGD'] json = self.get_json('api.itbit.com', '/v1/markets/XBT%s/ticker' % ccy) result = dict.fromkeys(ccys) - result[ccy] = Decimal(json['lastPrice']) + if ccy in ccys: + result[ccy] = Decimal(json['lastPrice']) return result class LocalBitcoins(ExchangeBase):