Skip to content

Commit 61ad414

Browse files
authored
🥅 Alert missing resource trying to output (#2167)
2 parents cda28cd + fc97ae8 commit 61ad414

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CPAC/pipeline/engine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,9 @@ def gather_pipes(self, wf, cfg, all=False, add_incl=None, add_excl=None):
13571357
wf.connect(id_string, "out_filename", nii_name, "format_string")
13581358

13591359
node, out = self.rpool[resource][pipe_idx]["data"]
1360+
if not node:
1361+
msg = f"Resource {resource} not found in resource pool."
1362+
raise FileNotFoundError(msg)
13601363
try:
13611364
wf.connect(node, out, nii_name, "in_file")
13621365
except OSError as os_error:

0 commit comments

Comments
 (0)