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

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

parent 6a91c938
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ def info(job_id): ...@@ -152,7 +152,7 @@ def info(job_id):
""" """
from fsl.utils.run import run from fsl.utils.run import run
try: try:
result = run(['qstat', '-j', job_id]) result = run(['qstat', '-j', job_id], exitcode=True)[0]
except FileNotFoundError: except FileNotFoundError:
log.debug("qstat not found; assuming not on cluster") log.debug("qstat not found; assuming not on cluster")
return {} 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