Skip to content

Commit

Permalink
Catch case where no argument are passed.
Browse files Browse the repository at this point in the history
Missed this when moving script around.
Refs #9639
  • Loading branch information
martyngigg committed Aug 14, 2014
1 parent 9d7f8c3 commit 1b69298
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/docs/runsphinx.py.in
Expand Up @@ -123,10 +123,13 @@ def find_test_files(src_dir, name_re):

Args:
src_dir (str): A string giving the source directory of doc files
name_re (str): A regex to match against a test filename.
name_re (str): A regex to match against a test filename. If None
then None is returned
Returns:
A list of paths to the chosen test files.
"""
if name_re is None:
return None
name_re_comp = re.compile(name_re)
testpaths = []
for dirpath, dirnames, filenames in os.walk(src_dir):
Expand Down

0 comments on commit 1b69298

Please sign in to comment.