File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ def standard_image(img_name):
87
87
Could be made more fancy to allow for more relocatability'''
88
88
clout = CommandLine (
89
89
'which afni' ,
90
+ ignore_exception = True ,
90
91
resource_monitor = False ,
91
92
terminal_output = 'allatonce' ).run ()
92
93
if clout .runtime .returncode is not 0 :
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def _is_pending(self, taskid):
54
54
# check condor cluster
55
55
oldlevel = iflogger .level
56
56
iflogger .setLevel (logging .getLevelName ('CRITICAL' ))
57
- result = cmd .run ()
57
+ result = cmd .run (ignore_exception = True )
58
58
iflogger .setLevel (oldlevel )
59
59
if result .runtime .stdout .count ('\n %d' % taskid ):
60
60
return True
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def _is_pending(self, taskid):
54
54
# check lsf task
55
55
oldlevel = iflogger .level
56
56
iflogger .setLevel (logging .getLevelName ('CRITICAL' ))
57
- result = cmd .run ()
57
+ result = cmd .run (ignore_exception = True )
58
58
iflogger .setLevel (oldlevel )
59
59
# logger.debug(result.runtime.stdout)
60
60
if 'DONE' in result .runtime .stdout or 'EXIT' in result .runtime .stdout :
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ def _is_pending(self, taskid):
52
52
result = CommandLine ('qstat -f {}' .format (taskid ),
53
53
environ = dict (os .environ ),
54
54
terminal_output = 'file_split' ,
55
- resource_monitor = False ).run ()
55
+ resource_monitor = False ,
56
+ ignore_exception = True ).run ()
56
57
57
58
stdout = result .runtime .stdout
58
59
stderr = result .runtime .stderr
You can’t perform that action at this time.
0 commit comments