BUG: missing parameters in log statements

This commit is contained in:
Victor Grau Serrat
2017-11-27 23:11:22 -07:00
parent 105522e5ab
commit 7a2a4817fe
+6 -5
View File
@@ -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,