chore: clarify delist-filter exception

This commit is contained in:
Matthias
2026-04-04 09:02:52 +02:00
parent e3c316f311
commit 4ddb7fd43f
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -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: