Fix test crash

This commit is contained in:
Matthias 2018-07-09 22:11:12 +02:00
parent 570d27a0c4
commit 85c60519b0
1 changed files with 3 additions and 2 deletions

View File

@ -70,8 +70,9 @@ class Exchange(object):
# Check if all pairs are available
self.validate_pairs(config['exchange']['pair_whitelist'])
# Check if timeframe is available
self.validate_timeframes(config['ticker_interval'])
if config.get('ticker_interval'):
# Check if timeframe is available
self.validate_timeframes(config['ticker_interval'])
def _init_ccxt(self, exchange_config: dict) -> ccxt.Exchange:
"""