From 7a2a4817fe9cdb52bd91d42bf84d105477d18bfe Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Mon, 27 Nov 2017 23:11:22 -0700 Subject: [PATCH] BUG: missing parameters in log statements --- catalyst/exchange/exchange.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/catalyst/exchange/exchange.py b/catalyst/exchange/exchange.py index 6315c82d..dc5b6c7c 100644 --- a/catalyst/exchange/exchange.py +++ b/catalyst/exchange/exchange.py @@ -132,7 +132,7 @@ class Exchange: def get_symbol(self, asset): """ - The the exchange specific symbol of the specified market. + The exchange specific symbol of the specified market. Parameters ---------- @@ -226,18 +226,19 @@ class Exchange: """ asset = None - log.debug('searching asset {} on the server') + log.debug('searching asset {} on the server'.format(symbol)) asset = self._find_asset(asset, symbol, data_frequency, False) - log.debug('asset {} not found on the server, searching local assets') + log.debug('asset {} not found on the server, searching local ' + 'assets'.format(symbol)) asset = self._find_asset(asset, symbol, data_frequency, True) if not asset: all_values = list(self.assets.values()) + \ list(self.local_assets.values()) - supported_symbols = [ + supported_symbols = sorted([ asset.symbol for asset in all_values - ] + ]) raise SymbolNotFoundOnExchange( symbol=symbol,