Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sean Fitzgibbon
fslpy
Commits
884c3473
Commit
884c3473
authored
Mar 20, 2020
by
Paul McCarthy
🚵
Browse files
BF: qstat -j returns non-0 code for non-existent job
parent
6a91c938
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/fslsub.py
View file @
884c3473
...
...
@@ -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
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment