Skip to content

Commit 2c0046f

Browse files
committed
FIX: Not all Tasks have input_spec class attributes
1 parent f0bf241 commit 2c0046f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def __setstate__(self, state):
215215
state["input_spec"] = cp.loads(state["input_spec"])
216216
if "output_spec" in state:
217217
state["output_spec"] = cp.loads(state["output_spec"])
218-
input_spec = state.get("input_spec", self.input_spec)
218+
input_spec = state.get("input_spec", getattr(self, "input_spec", None))
219219
state["inputs"] = make_klass(input_spec)(**state["inputs"])
220220
self.__dict__.update(state)
221221

0 commit comments

Comments
 (0)