Skip to content

Commit a9d2836

Browse files
authored
Preprocess: only try to remove param if it's defined (#110)
1 parent 73c5cb9 commit a9d2836

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cirro/helpers/preprocess_dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def remove_param(self, name: str, force=False):
111111
f"Cannot remove parameter {name}, does not exist (and force=False)"
112112

113113
self.logger.info(f"Removing parameter {name}")
114-
del self.params[name]
114+
if name in self.params:
115+
del self.params[name]
115116

116117
self.logger.info("Saving parameters")
117118
_write_json(self.params, "nextflow.json")

0 commit comments

Comments
 (0)