diff --git a/tools/nni_cmd/config_utils.py b/tools/nni_cmd/config_utils.py index 1b7cbc1662..8cc1dc8ada 100644 --- a/tools/nni_cmd/config_utils.py +++ b/tools/nni_cmd/config_utils.py @@ -76,7 +76,7 @@ def update_experiment(self, expId, key, value): def remove_experiment(self, expId): '''remove an experiment by id''' - if id in self.experiments: + if expId in self.experiments: self.experiments.pop(expId) self.write_file()