fix db-url handling if passed via CLI args
This commit is contained in:
parent
ac602ed5a9
commit
526cb1ea20
@ -97,7 +97,7 @@ class Configuration(object):
|
|||||||
'(not applicable with Backtesting and Hyperopt)'
|
'(not applicable with Backtesting and Hyperopt)'
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.args.db_url and config.get('db_url', None):
|
if self.args.db_url != constants.DEFAULT_DB_PROD_URL:
|
||||||
config.update({'db_url': self.args.db_url})
|
config.update({'db_url': self.args.db_url})
|
||||||
logger.info('Parameter --db-url detected ...')
|
logger.info('Parameter --db-url detected ...')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user