Skip to content

Commit c100772

Browse files
author
Daniel Geisler
committed
FIX: check if result has an attribute outputs before accessing it
1 parent b75a7ce commit c100772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def load_resultfile(results_file, resolve=True):
291291
raise FileNotFoundError(results_file)
292292

293293
result = loadpkl(results_file)
294-
if resolve and result.outputs:
294+
if resolve and hasattr(result,"outputs") and result.outputs:
295295
try:
296296
outputs = result.outputs.get()
297297
except TypeError: # This is a Bunch

0 commit comments

Comments
 (0)