Skip to content

Commit d6cafa2

Browse files
committed
Fix attribute error related to terminal_output attribute
1 parent fd788f8 commit d6cafa2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ def _clear_task(self, taskid):
180180

181181
def _submit_job(self, node, updatehash=False):
182182
self._taskid += 1
183-
if node.inputs.terminal_output == 'stream':
184-
node.inputs.terminal_output = 'allatonce'
183+
if hasattr(node.inputs, 'terminal_output'):
184+
if node.inputs.terminal_output == 'stream':
185+
node.inputs.terminal_output = 'allatonce'
185186

186187
self._taskresult[self._taskid] = \
187188
self.pool.apply_async(run_node,

0 commit comments

Comments
 (0)