Use dot to access attribute in NamedTuple
This should fix the crash in #1359
This commit is contained in:
parent
200484ab8b
commit
16eec078d7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user