mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
catch ValueErrors from analyze_ticker (fixes #123)
This commit is contained in:
parent
43dda9c9cf
commit
65ce948b0b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user