def protocol_downgrade(self, host_addr, previous_version):
        new_version = previous_version - 1
        if new_version < self.protocol_version:
            if MIN_SUPPORTED_VERSION >= new_version:
                log.warning("Downgrading core protocol version from %d to %d for %s", self.protocol_version, new_version, host_addr)
                self.protocol_version = new_version
            else:
                raise DriverException("Cannot downgrade protocol version (%d) below minimum supported version: %d" % (new_version, MIN_SUPPORTED_VERSION))
dataset/ETHPy150Open datastax/python-driver/cassandra/cluster.py/Cluster.protocol_downgrade/swapped operands of `>=`