chore: clarify delist-filter exception
This commit is contained in:
@@ -23,9 +23,10 @@ class DelistFilter(IPairList):
|
||||
self._max_days_from_now = self._pairlistconfig.get("max_days_from_now", 0)
|
||||
if self._max_days_from_now < 0:
|
||||
raise ConfigurationError("DelistFilter requires max_days_from_now to be >= 0")
|
||||
if not self._exchange._ft_has["has_delisting"]:
|
||||
if not self._exchange.get_option("has_delisting"):
|
||||
raise ConfigurationError(
|
||||
"DelistFilter doesn't support this exchange and trading mode combination.",
|
||||
f"DelistFilter doesn't support {self._exchange.name} in "
|
||||
f"{self._exchange.trading_mode} mode."
|
||||
)
|
||||
|
||||
def short_desc(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user