From 8f9b1af729a09f4ec3423b35e4c6fd7c4d83270d Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Mon, 1 Jan 2018 20:17:52 -0200 Subject: [PATCH] Fix live trading bug Error: `AttributeError: 'ExchangeBlotter' object has no attribute 'retry_sleeptime'` --- catalyst/exchange/exchange_blotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/exchange/exchange_blotter.py b/catalyst/exchange/exchange_blotter.py index 06494788..050a048f 100644 --- a/catalyst/exchange/exchange_blotter.py +++ b/catalyst/exchange/exchange_blotter.py @@ -268,7 +268,7 @@ class ExchangeBlotter(Blotter): return retry( action=self.get_exchange_transactions, attempts=self.attempts['get_transactions_attempts'], - sleeptime=self.retry_sleeptime, + sleeptime=self.attempts['retry_sleeptime'], retry_exceptions=(ExchangeRequestError,), cleanup=lambda e: log.warn( 'fetching exchange transactions again: {}'.format(e)