Check whitelist fetched from config for emptiness
This commit is contained in:
parent
8546db9dfd
commit
34b40500c3
@ -79,6 +79,9 @@ class FreqtradeBot(object):
|
|||||||
self.config.get('edge', {}).get('enabled', False) else None
|
self.config.get('edge', {}).get('enabled', False) else None
|
||||||
|
|
||||||
self.active_pair_whitelist: List[str] = self.config['exchange']['pair_whitelist']
|
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()
|
self._init_modules()
|
||||||
|
|
||||||
# Tell the systemd that we completed initialization phase
|
# Tell the systemd that we completed initialization phase
|
||||||
|
Loading…
Reference in New Issue
Block a user