From 130b1232c6f0315ca1f2a91bc93a214462546d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Wed, 3 Jun 2026 19:42:29 -0300 Subject: [PATCH] Fixed pair removal failure in remove_pair_from_config --- exchange_wrapper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exchange_wrapper.py b/exchange_wrapper.py index 0a01e3d..69ff0d9 100755 --- a/exchange_wrapper.py +++ b/exchange_wrapper.py @@ -305,17 +305,17 @@ class Broker: self.logger.log_this(f"Exception while reading the config file: {e}",1) - def add_pair_to_config(self,pair): + def add_pair_to_config(self, pair: str): if pair not in self.broker_config["pairs"]: self.broker_config["pairs"].append(pair) return 0 return 1 - def remove_pair_from_config(self,pair): + def remove_pair_from_config(self, pair: str): try: if pair in self.broker_config["pairs"]: - self.broker_config["pairs"].remove(pair) + self.broker_config["pairs"].remove(pair.replace("/","")) return 0 self.logger.log_this("Pair does not exist - Can't remove from read_config",1,pair) return 2