mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33: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
|
:param pair: pair in format BTC_ANT or BTC-ANT
|
||||||
:return: True if pair is good for buying, False otherwise
|
: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:
|
if dataframe.empty:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user