From d248581523d2f064181612f43f8051d3b69224ae Mon Sep 17 00:00:00 2001 From: fredfortier Date: Sat, 21 Oct 2017 00:27:05 -0400 Subject: [PATCH] Fixed an error message --- catalyst/utils/run_algo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/catalyst/utils/run_algo.py b/catalyst/utils/run_algo.py index da2c3ef8..5cff0afe 100644 --- a/catalyst/utils/run_algo.py +++ b/catalyst/utils/run_algo.py @@ -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)