Skip to content

Commit 9ec00dc

Browse files
committed
removing ignore_exception=True from CommandLine call (ignore_exception is deprecated)
1 parent a1ab518 commit 9ec00dc

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

nipype/interfaces/afni/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ 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,
9190
resource_monitor=False,
9291
terminal_output='allatonce').run()
9392
if clout.runtime.returncode is not 0:

nipype/pipeline/plugins/condor.py

Lines changed: 1 addition & 1 deletion
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(ignore_exception=True)
57+
result = cmd.run()
5858
iflogger.setLevel(oldlevel)
5959
if result.runtime.stdout.count('\n%d' % taskid):
6060
return True

nipype/pipeline/plugins/lsf.py

Lines changed: 1 addition & 1 deletion
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(ignore_exception=True)
57+
result = cmd.run()
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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ 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,
56-
ignore_exception=True).run()
55+
resource_monitor=False).run()
5756

5857
stdout = result.runtime.stdout
5958
stderr = result.runtime.stderr

0 commit comments

Comments
 (0)