tFix itbit - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 650f9b215cf56fd11c2c3bfc829e5cd2e829f183
DIR parent 154cdd1697cfa89254eaac0bed73b2634393751a
HTML Author: Neil Booth <kyuupichan@gmail.com>
Date: Mon, 7 Sep 2015 07:38:30 +0900
Fix itbit
Diffstat:
M plugins/exchange_rate.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py
t@@ -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):