Commit e7c48926 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Minor fixes

parent 06a86eb7
......@@ -156,10 +156,10 @@ class SubmitParams(object):
(set to None to include everything)
:return: the group the arguments got added to
from import runfsl
from import runfsl, FSLNotPresent
fsl_sub_run, _ = runfsl('fsl_sub', exitcode=True)
except FileNotFoundError:
except (FileNotFoundError, FSLNotPresent):
warnings.warn('fsl_sub was not found')
doc_lines = fsl_sub_run.splitlines()
......@@ -183,7 +183,7 @@ class SubmitParams(object):
elif line.strip().startswith(flag):
explanation = [line[nspaces:].strip()]
if len(explanation) == 0:
if (explanation is None) or (len(explanation) == 0):
return 'documentation not found'
return ' '.join(explanation)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment