Skip to content
Snippets Groups Projects
Commit 38411970 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'bf/info' into 'master'

BF: qstat -j returns non-0 code for non-existent job

See merge request fsl/fslpy!209
parents 6a91c938 884c3473
No related branches found
No related tags found
No related merge requests found
Pipeline #5119 passed
......@@ -152,7 +152,7 @@ def info(job_id):
"""
from fsl.utils.run import run
try:
result = run(['qstat', '-j', job_id])
result = run(['qstat', '-j', job_id], exitcode=True)[0]
except FileNotFoundError:
log.debug("qstat not found; assuming not on cluster")
return {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment