Fix another PEP8 thing

This commit is contained in:
Ramon Bastiaans 2018-02-01 01:27:41 +01:00
parent 5d2dbeb54c
commit 5bc80d1e78

View File

@ -118,11 +118,7 @@ def backtest(args) -> DataFrame:
trades = []
trade_count_lock: dict = {}
try:
exchange_class = exchange.Exchanges[exchange_name.upper()].value
except KeyError:
raise OperationalException('Exchange {} is not supported'.format(
exchange_name))
exchange_class = exchange.Exchanges[exchange_name.upper()].value
exchange._API = exchange_class({'key': '', 'secret': ''})
for pair, pair_data in processed.items():