Combine tests for empty dataframe

This commit is contained in:
Matthias
2020-06-18 07:03:30 +02:00
parent 8472fcfff9
commit f2a778d294
2 changed files with 6 additions and 10 deletions

View File

@@ -415,7 +415,7 @@ class IStrategy(ABC):
dataframe, _ = self.dp.get_analyzed_dataframe(pair, timeframe)
if not isinstance(dataframe, DataFrame) or dataframe.empty:
logger.warning('Empty dataframe for pair %s', pair)
logger.warning(f'Empty candle (OHLCV) data for pair {pair}')
return False, False
latest_date = dataframe['date'].max()