Merge pull request #321 from gcarq/log-exceptions

Log exceptions
This commit is contained in:
Janne Sinivirta
2018-01-06 10:14:57 +02:00
committed by GitHub
3 changed files with 13 additions and 2 deletions

View File

@@ -145,6 +145,9 @@ def get_signal(pair: str, signal: SignalType) -> bool:
except ValueError as ex:
logger.warning('Unable to analyze ticker for pair %s: %s', pair, str(ex))
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:
return False