Merge pull request #1979 from hroff-1902/fix/1978

fix #1978
This commit is contained in:
Matthias 2019-06-28 06:04:32 +02:00 committed by GitHub
commit 152e138c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ class Configuration(object):
self._load_logging_config(config)
# Support for sd_notify
if self.args.sd_notify:
if 'sd_notify' in self.args and self.args.sd_notify:
config['internals'].update({'sd_notify': True})
# Add dynamic_whitelist if found
@ -186,7 +186,8 @@ class Configuration(object):
'(not applicable with Backtesting and Hyperopt)'
)
if self.args.db_url and self.args.db_url != constants.DEFAULT_DB_PROD_URL:
if ('db_url' in self.args and self.args.db_url and
self.args.db_url != constants.DEFAULT_DB_PROD_URL):
config.update({'db_url': self.args.db_url})
logger.info('Parameter --db-url detected ...')