mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
chore: update margin/trading mode exception to be a configuration error
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user