Merge pull request #1360 from pan-long/patch-1

Use dot to access attribute in NamedTuple
This commit is contained in:
Matthias
2018-11-26 06:18:16 +01:00
committed by GitHub

View File

@@ -35,8 +35,8 @@ class Wallets(object):
return 999.9
balance = self.wallets.get(currency)
if balance and balance['free']:
return balance['free']
if balance and balance.free:
return balance.free
else:
return 0