Skip convert if balance is zero

This commit is contained in:
Anton Ermak 2018-01-28 16:15:23 +07:00
parent 81ed7627bf
commit 45239724c6

View File

@ -390,7 +390,8 @@ def _balance(bot: Bot, update: Update) -> None:
if c['Balance'] or c['Available'] or c['Pending'] if c['Balance'] or c['Available'] or c['Pending']
] ]
if not balances: if not balances:
output = '`All balances are zero.`' send_msg('`All balances are zero.`')
return
total = 0.0 total = 0.0
for currency in balances: for currency in balances: