orderflow: raise DependencyException instead of raising generic exception

This commit is contained in:
Joe Schr
2024-05-28 20:18:41 +02:00
parent 4629362a60
commit 24707ab7b9

View File

@@ -9,6 +9,7 @@ import numpy as np
import pandas as pd
from freqtrade.constants import DEFAULT_ORDERFLOW_COLUMNS, Config
from freqtrade.exceptions import DependencyException
logger = logging.getLogger(__name__)
@@ -165,7 +166,7 @@ def populate_dataframe_with_trades(
except Exception as e:
logger.exception("Error populating dataframe with trades:", e)
raise e
raise DependencyException(e)
return dataframe