def subscribe_to_service(self, method, params):
        if self.stopped():
            return False

        if len(self.subscriptions) > self.max_subscriptions:
            print_log("max subscriptions reached", self.address)
            self.stop()
            return False

        # append to self.subscriptions only if this does not raise
        self.bp.do_subscribe(method, params, self)
        with self.lock:
            if self.subscriptions not in (method, params):
                self.subscriptions.append((method,params))
        return True
dataset/ETHPy150Open spesmilo/electrum-server/src/processor.py/Session.subscribe_to_service/swapped operands of `not in`