mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 10:50:55 +08:00
BUG: missing parameters in log statements
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user