Add test for assert error

This commit is contained in:
Matthias
2020-03-29 11:40:13 +02:00
parent 0887a0212c
commit cd2e738e35
2 changed files with 27 additions and 5 deletions

View File

@@ -279,11 +279,12 @@ class IStrategy(ABC):
dataframe = self._analyze_ticker_internal(dataframe, {'pair': pair})
self.assert_df(dataframe, df_len, df_close, df_date)
except ValueError as error:
logger.warning(
'Unable to analyze candle (OHLCV) data for pair %s: %s',
pair,
str(error)
)
logger.warning('Unable to analyze candle (OHLCV) data for pair %s: %s',
pair, str(error))
return False, False
except DependencyException as error:
logger.warning("Unable to analyze candle (OHLCV) data for pair %s: %s",
pair, str(error))
return False, False
except Exception as error:
logger.exception(