sQu1rr / binance-dust-sweeper

Sweep your dusty coins on binance
MIT License
35 stars 3 forks source link

KeyError: 'BNB' #7

Closed dicemans closed 6 years ago

dicemans commented 6 years ago

root@binance/var/opt/dust# ./dustsweeper.py --dry-run Connecting to API Connected Traceback (most recent call last): File "./dustsweeper.py", line 23, in helper.set_bnb_prompt(args.bnb_prompt) File "/var/opt/dust/belks/binance/dustsweeper.py", line 70, in set_bnb_prompt self.bnb_prompt = bool(show) and self.account.has_bnb() File "/var/opt/dust/belks/binance/account.py", line 27, in has_bnb return self.coins['BNB']['balance'] > 0 KeyError: 'BNB'

dicemans commented 6 years ago

i have fixed:

File "belks/binance/account.py", line 27 return ('BNB' in self.coins) and (self.coins['BNB']['balance'] > 0)

sQu1rr commented 6 years ago

duplicate of #1