Fixed an error message

This commit is contained in:
fredfortier
2017-10-21 00:27:05 -04:00
parent 48f6300e08
commit d248581523
+5 -2
View File
@@ -237,8 +237,11 @@ def _run(handle_data,
balances = exchange.get_balances()
except ExchangeRequestError as e:
if attempt_index < 20:
log.warn('exchange error when retrieving balances, {} '
'trying again in 5 seconds'.format(e))
log.warn(
'could not retrieve balances on {}: {}'.format(
exchange.name, e
)
)
sleep(5)
return fetch_capital_base(exchange, attempt_index + 1)