log exceptions, catch *all* exceptions when analysing ticker
This commit is contained in:
parent
552fba773d
commit
be8506b45e
@ -144,6 +144,9 @@ def get_signal(pair: str, signal: SignalType) -> bool:
|
|||||||
except ValueError as ex:
|
except ValueError as ex:
|
||||||
logger.warning('Unable to analyze ticker for pair %s: %s', pair, str(ex))
|
logger.warning('Unable to analyze ticker for pair %s: %s', pair, str(ex))
|
||||||
return False
|
return False
|
||||||
|
except Exception as ex:
|
||||||
|
logger.exception('Unexpected error when analyzing ticker for pair %s: %s', pair, str(ex))
|
||||||
|
return False
|
||||||
|
|
||||||
if dataframe.empty:
|
if dataframe.empty:
|
||||||
return False
|
return False
|
||||||
|
@ -57,8 +57,8 @@ def load_config(path: str) -> Dict:
|
|||||||
try:
|
try:
|
||||||
validate(conf, CONF_SCHEMA)
|
validate(conf, CONF_SCHEMA)
|
||||||
return conf
|
return conf
|
||||||
except ValidationError:
|
except ValidationError as ex:
|
||||||
logger.fatal('Configuration is not valid! See config.json.example')
|
logger.fatal('Invalid configuration. See config.json.example. Reason: %s', ex)
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
best_match(Draft4Validator(CONF_SCHEMA).iter_errors(conf)).message
|
best_match(Draft4Validator(CONF_SCHEMA).iter_errors(conf)).message
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user