diff options
| author | Georg Brandl <georg@python.org> | 2011-01-03 19:34:21 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-01-03 19:34:21 +0100 |
| commit | 33681bc881488e3225936c4b7dc3d50aec0a7514 (patch) | |
| tree | 5e3f8d1e21338900b54ba3f982ba224e500f6507 /sphinx/ext/viewcode.py | |
| parent | f18fe145d8b5169258aff292aa3f920ec7e960d5 (diff) | |
| download | sphinx-33681bc881488e3225936c4b7dc3d50aec0a7514.tar.gz | |
#515: Fix tracebacks in the viewcode extension for Python objects that do not have a valid signature.
Diffstat (limited to 'sphinx/ext/viewcode.py')
| -rw-r--r-- | sphinx/ext/viewcode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py index 81881beb..80af481e 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -47,10 +47,10 @@ def doctree_read(app, doctree): for signode in objnode: if not isinstance(signode, addnodes.desc_signature): continue - modname = signode['module'] + modname = signode.get('module') if not modname: continue - fullname = signode['fullname'] + fullname = signode.get('fullname') if not has_tag(modname, fullname, env.docname): continue if fullname in names: |
