From 34b40500c33dbddbd60f45ae9e8dcf4e619b0b18 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Mon, 1 Apr 2019 20:45:59 +0300 Subject: [PATCH] Check whitelist fetched from config for emptiness --- freqtrade/freqtradebot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index e9b8b1956..42013c85f 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -79,6 +79,9 @@ 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() # Tell the systemd that we completed initialization phase