mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed a bug in autodoc that caused a type error if automodule was used without members.
This commit is contained in:
@@ -614,7 +614,7 @@ class ModuleDocumenter(Documenter):
|
||||
else:
|
||||
memberlist = self.options.members
|
||||
ret = []
|
||||
for mname in memberlist:
|
||||
for mname in memberlist or ():
|
||||
try:
|
||||
ret.append((mname, getattr(self.object, mname)))
|
||||
except AttributeError:
|
||||
|
||||
Reference in New Issue
Block a user