Skip to content

Commit bfa9c81

Browse files
committed
chore: update margin/trading mode exception to be a configuration error
1 parent 30afedd commit bfa9c81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

freqtrade/exchange/exchange.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,8 +877,8 @@ def validate_trading_mode_and_margin_mode(
877877
(trading_mode, margin_mode) not in self._supported_trading_mode_margin_pairs
878878
):
879879
mm_value = margin_mode and margin_mode.value
880-
raise OperationalException(
881-
f"Freqtrade does not support {mm_value} {trading_mode} on {self.name}"
880+
raise ConfigurationError(
881+
f"Freqtrade does not support '{mm_value}' '{trading_mode}' on {self.name}."
882882
)
883883

884884
def get_option(self, param: str, default: Any | None = None) -> Any:

0 commit comments

Comments
 (0)