diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 6f80b23ac..d4a28b85c 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -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():