Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adiroiban
Created July 19, 2016 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adiroiban/642850727d2e49937cb582a3fd284cbd to your computer and use it in GitHub Desktop.
Save adiroiban/642850727d2e49937cb582a3fd284cbd to your computer and use it in GitHub Desktop.
pydoctor for twisted no fetch
diff --git twisted/python/_pydoctor.py twisted/python/_pydoctor.py
index 76a5458..4d064b4 100644
--- twisted/python/_pydoctor.py
+++ twisted/python/_pydoctor.py
@@ -60,6 +60,13 @@ class TwistedSphinxInventory(SphinxInventory):
# as an exceptional case.
# We get the base URL from IInterface which is assume that is
# always and already well defined in the Sphinx index.
+ link = self._links.get('zope.interface.interfaces.IInterface')
+
+ if not link:
+ # Most probably that the zope.interface inventory was not
+ # loaded.
+ return None
+
baseURL, _ = self._links.get(
'zope.interface.interfaces.IInterface')
diff --git twisted/python/_release.py twisted/python/_release.py
index 84ab8c0..9f27a76 100644
--- twisted/python/_release.py
+++ twisted/python/_release.py
@@ -529,7 +529,7 @@ class APIBuilder(object):
"--html-viewsource-base", sourceURL,
"--add-package", packagePath.path,
"--html-output", outputPath.path,
- "--html-write-function-pages", "--quiet", "--make-html",
+ "--html-write-function-pages", "--make-html",
] + intersphinxes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment