Move .title to ExchangeResolver (it does not make sense to do this over

and over again)
This commit is contained in:
Matthias
2019-06-22 16:52:14 +02:00
parent 026784efac
commit 4cbcb5f36f
6 changed files with 7 additions and 9 deletions

View File

@@ -22,6 +22,7 @@ class ExchangeResolver(IResolver):
Load the custom class from config parameter
:param config: configuration dictionary
"""
exchange_name = exchange_name.title()
try:
self.exchange = self._load_exchange(exchange_name, kwargs={'config': config})
except ImportError: