BUG: fixed retry issue with synchronize_portfolio

This commit is contained in:
Frederic Fortier
2017-12-11 02:22:38 -05:00
parent 49aaaa8f26
commit a3761beae2
+1 -1
View File
@@ -507,7 +507,7 @@ class ExchangeTradingAlgorithmLive(ExchangeTradingAlgorithmBase):
)
if attempt_index < self.retry_synchronize_portfolio:
sleep(self.retry_delay)
self.synchronize_portfolio(attempt_index + 1)
return self.synchronize_portfolio(attempt_index + 1)
else:
raise ExchangePortfolioDataError(
data_type='update-portfolio',