chore: update margin/trading mode exception to be a configuration error

This commit is contained in:
Matthias
2025-07-02 07:47:38 +02:00
parent 30afedd4f8
commit bfa9c818e6

View File

@@ -877,8 +877,8 @@ class Exchange:
(trading_mode, margin_mode) not in self._supported_trading_mode_margin_pairs
):
mm_value = margin_mode and margin_mode.value
raise OperationalException(
f"Freqtrade does not support {mm_value} {trading_mode} on {self.name}"
raise ConfigurationError(
f"Freqtrade does not support '{mm_value}' '{trading_mode}' on {self.name}."
)
def get_option(self, param: str, default: Any | None = None) -> Any: