Skip to content

Commit 5653828

Browse files
committed
FIX: make exception explicit
1 parent 0d7b0c9 commit 5653828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/slurm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _is_pending(self, taskid):
6969
resource_monitor=False,
7070
terminal_output='allatonce').run()
7171
return res.runtime.stdout.find(str(taskid)) > -1
72-
except Exception as e:
72+
except RuntimeError as e:
7373
if 'Invalid job id' not in str(e):
7474
raise(e)
7575
return False

0 commit comments

Comments
 (0)