[FIX] Ignore currency pairs with no price
@@ -55,7 +55,7 @@ logger = gogo.Gogo(__name__, monolog=True).logger
def parse_response(json):
resources = json['list']['resources']
fields = (r['resource']['fields'] for r in resources)
- return {i['symbol']: Decimal(i['price']) for i in fields}
+ return {i['symbol']: Decimal(i['price']) for i in fields if 'price' in i}
def calc_rate(from_cur, to_cur, rates, places=Decimal('0.0001')):
