mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#3498: fix unbound local.
This commit is contained in:
parent
97558dcc06
commit
55c4faa3e2
@ -310,7 +310,7 @@ class RstGenerator(object):
|
||||
if hasattr(self.env, 'autodoc_current_class'):
|
||||
mod_cls = self.env.autodoc_current_class
|
||||
# ... or from a class directive
|
||||
if not mod_cls:
|
||||
else:
|
||||
mod_cls = self.env.currclass
|
||||
mod, cls = rpartition(mod_cls, '.')
|
||||
# if the module name is still missing, get it like above
|
||||
|
Loading…
Reference in New Issue
Block a user