mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 04:41:15 +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
|
(trading_mode, margin_mode) not in self._supported_trading_mode_margin_pairs
|
||||||
):
|
):
|
||||||
mm_value = margin_mode and margin_mode.value
|
mm_value = margin_mode and margin_mode.value
|
||||||
raise OperationalException(
|
raise ConfigurationError(
|
||||||
f"Freqtrade does not support {mm_value} {trading_mode} on {self.name}"
|
f"Freqtrade does not support '{mm_value}' '{trading_mode}' on {self.name}."
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_option(self, param: str, default: Any | None = None) -> Any:
|
def get_option(self, param: str, default: Any | None = None) -> Any:
|
||||||
|
|||||||
Reference in New Issue
Block a user