electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 650f9b215cf56fd11c2c3bfc829e5cd2e829f183
parent 154cdd1697cfa89254eaac0bed73b2634393751a
Author: Neil Booth <kyuupichan@gmail.com>
Date:   Mon,  7 Sep 2015 07:38:30 +0900

Fix itbit

Diffstat:
Mplugins/exchange_rate.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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):