Commits

Andrey Popp committed 9d8aae9

httpdomain: fix IndexError for / path

Comments (0)

Files changed (1)

httpdomain/sphinxcontrib/httpdomain.py

         for prefix in self.ignore:
             if letters[:len(prefix)] == prefix:
                 return '/' + '/'.join(letters[:len(prefix) + 1])
-        return '/' + letters[0]
+        return '/%s' % (letters[0] if letters else '',)
 
     def generate(self, docnames=None):
         content = {}