Fix Problem when ccxt reports None as values

This commit is contained in:
Matthias 2019-09-05 20:02:18 +02:00
parent e2e0015119
commit e8f37666ea

View File

@ -294,9 +294,9 @@ class RPC(object):
total = total + est_btc
output.append({
'currency': coin,
'free': balance['free'],
'balance': balance['total'],
'used': balance['used'],
'free': balance['free'] if balance['free'] is not None else 0,
'balance': balance['total'] if balance['total'] is not None else 0,
'used': balance['used'] if balance['used'] is not None else 0,
'est_btc': est_btc,
})
if total == 0.0: