Check whitelist fetched from config for emptiness

This commit is contained in:
hroff-1902 2019-04-01 20:45:59 +03:00
parent 8546db9dfd
commit 34b40500c3

View File

@ -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