def updateNetwork(self, network, managing_nsa):
        # update an existing network entry
        existing_entry = self.networks.pop(network.id_, None) # note - we may get none here (for new network)
        try:
            self.addNetwork(network, managing_nsa)
        except error.TopologyError as e:
            log.msg((network.id_, str(e)) % 'Error updating network entry for %s. Reason: %s')
            if existing_entry:
                self.networks[network.id_] = existing_entry # restore old entry
            raise e
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/topology/nml.py/Topology.updateNetwork/swapped operands of `%`