fix handling --no-color for edge and backtesting

This commit is contained in:
hroff-1902 2019-08-12 23:13:04 +03:00
parent 1a34b9b61c
commit 58d308fd05

View File

@ -256,7 +256,9 @@ class Configuration(object):
if 'print_colorized' in self.args and not self.args.print_colorized: if 'print_colorized' in self.args and not self.args.print_colorized:
logger.info('Parameter --no-color detected ...') logger.info('Parameter --no-color detected ...')
config.update({'print_colorized': getattr(self.args, 'print_colorized')}) config.update({'print_colorized': False})
else:
config.update({'print_colorized': True})
self._args_to_config(config, argname='hyperopt_jobs', self._args_to_config(config, argname='hyperopt_jobs',
logstring='Parameter -j/--job-workers detected: {}') logstring='Parameter -j/--job-workers detected: {}')