Skip to content

Commit 573582e

Browse files
committed
Revert "removing ignore_exception=True from CommandLine call (ignore_exception is deprecated)"
This reverts commit 9ec00dc.
1 parent 448b875 commit 573582e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

nipype/interfaces/afni/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def standard_image(img_name):
8787
Could be made more fancy to allow for more relocatability'''
8888
clout = CommandLine(
8989
'which afni',
90+
ignore_exception=True,
9091
resource_monitor=False,
9192
terminal_output='allatonce').run()
9293
if clout.runtime.returncode is not 0:

nipype/pipeline/plugins/condor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _is_pending(self, taskid):
5454
# check condor cluster
5555
oldlevel = iflogger.level
5656
iflogger.setLevel(logging.getLevelName('CRITICAL'))
57-
result = cmd.run()
57+
result = cmd.run(ignore_exception=True)
5858
iflogger.setLevel(oldlevel)
5959
if result.runtime.stdout.count('\n%d' % taskid):
6060
return True

nipype/pipeline/plugins/lsf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _is_pending(self, taskid):
5454
# check lsf task
5555
oldlevel = iflogger.level
5656
iflogger.setLevel(logging.getLevelName('CRITICAL'))
57-
result = cmd.run()
57+
result = cmd.run(ignore_exception=True)
5858
iflogger.setLevel(oldlevel)
5959
# logger.debug(result.runtime.stdout)
6060
if 'DONE' in result.runtime.stdout or 'EXIT' in result.runtime.stdout:

nipype/pipeline/plugins/pbs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def _is_pending(self, taskid):
5252
result = CommandLine('qstat -f {}'.format(taskid),
5353
environ=dict(os.environ),
5454
terminal_output='file_split',
55-
resource_monitor=False).run()
55+
resource_monitor=False,
56+
ignore_exception=True).run()
5657

5758
stdout = result.runtime.stdout
5859
stderr = result.runtime.stderr

0 commit comments

Comments
 (0)