From ab0e657d7711bdb4a1ff7b60652a4e2030b8cbc3 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Mon, 1 Apr 2019 21:36:53 +0300 Subject: [PATCH] Check for empty whitelist moved to _process() --- freqtrade/freqtradebot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 42013c85f..e5400c1d0 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -79,8 +79,6 @@ class FreqtradeBot(object): self.config.get('edge', {}).get('enabled', False) else None self.active_pair_whitelist: List[str] = self.config['exchange']['pair_whitelist'] - if not self.active_pair_whitelist: - raise DependencyException('Whitelist is empty.') self._init_modules() @@ -198,6 +196,9 @@ class FreqtradeBot(object): # Refresh whitelist self.pairlists.refresh_pairlist() self.active_pair_whitelist = self.pairlists.whitelist + if not self.active_pair_whitelist: + logger.warning('Whitelist is empty.') + return False # Calculating Edge positioning if self.edge: