catch ValueErrors from analyze_ticker (fixes #123)

This commit is contained in:
gcarq 2017-11-21 20:37:29 +01:00
parent 43dda9c9cf
commit 65ce948b0b
1 changed files with 6 additions and 1 deletions

View File

@ -119,7 +119,12 @@ def get_signal(pair: str, signal: SignalType) -> bool:
:param pair: pair in format BTC_ANT or BTC-ANT
:return: True if pair is good for buying, False otherwise
"""
dataframe = analyze_ticker(pair)
try:
dataframe = analyze_ticker(pair)
except ValueError as ex:
logger.warning('Unable to analyze ticker for pair %s: %s', pair, str(ex))
return False
if dataframe.empty:
return False