summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Alvares Gomes <lucasagomes@gmail.com>2017-01-18 11:58:38 +0000
committerLucas Alvares Gomes <lucasagomes@gmail.com>2017-01-18 12:08:57 +0000
commit7e96104e7bb08827967275eda26723a473b1ce6c (patch)
treea50dbc2761c96344c3d50cc0a449ae4d9bab2884
parent9676ffcd1d0794b6f55592e548c50e053c476eb9 (diff)
downloadwsme-7e96104e7bb08827967275eda26723a473b1ce6c.tar.gz
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
-rw-r--r--wsmeext/sphinxext.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wsmeext/sphinxext.py b/wsmeext/sphinxext.py
index 9c8ffe3..177f25b 100644
--- a/wsmeext/sphinxext.py
+++ b/wsmeext/sphinxext.py
@@ -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)