Skip to content

Commit

Permalink
Remove extraneous msg variable creation
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Lalancette <[email protected]>
  • Loading branch information
Abrar Rahman Protyasha and clalancette authored Aug 11, 2021
1 parent 563e839 commit 08eed57
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rosdoc2/verbs/build/builders/sphinx_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,9 @@ def build(self, *, doc_build_folder, output_staging_directory):
except ValueError:
package_src_directory = ''
if not package_src_directory:
msg = \
'Could not locate source directory to invoke sphinx-apidoc in. ' \
'If this is package does not have a standard Python package layout, '\
'please specify the Python source in `rosdoc2.yaml`.'
raise RuntimeError(msg)
raise RuntimeError('Could not locate source directory to invoke sphinx-apidoc in. '
'If this is package does not have a standard Python package layout, '
'please specify the Python source in `rosdoc2.yaml`.')
cmd = [
'sphinx-apidoc',
'-o', os.path.relpath(sourcedir, start=doc_build_folder),
Expand Down

0 comments on commit 08eed57

Please sign in to comment.