load generic class if no subclass exists

This commit is contained in:
iuvbio
2019-02-17 14:42:55 +01:00
parent d3ead2cd09
commit fe792882b5
2 changed files with 8 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class ExchangeResolver(IResolver):
Load the custom class from config parameter
:param config: configuration dictionary or None
"""
self.pairlist = self._load_exchange(exchange_name, kwargs={'freqtrade': freqtrade,
self.exchange = self._load_exchange(exchange_name, kwargs={'freqtrade': freqtrade,
'config': config})
def _load_exchange(