Fix: Sphinx extension on Python3

This patch is fixing the WSME Sphinx extension to work with Python 3.
The patch just checks the return value from the find_service_path()
method before it tries to do anything with it.

Change-Id: I5a4cfa42a8768ce35a1c1a999431e842c7dde020
Closes-Bug: #1657435
This commit is contained in:
Lucas Alvares Gomes 2017-01-18 11:58:38 +00:00
parent 9676ffcd1d
commit 7e96104e7b
1 changed files with 2 additions and 0 deletions

View File

@ -361,6 +361,8 @@ class ServiceDocumenter(autodoc.ClassDocumenter):
def format_name(self):
path = find_service_path(self.env, self.object)
if path is None:
return
return '/' + '/'.join(path)