mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-11 19:10:58 +00:00
Handle empty objects list
This commit is contained in:
parent
243549f2fe
commit
dfbae94963
@ -168,6 +168,8 @@ class DotNetSphinxMapper(SphinxMapperBase):
|
|||||||
del self.namespaces[key]
|
del self.namespaces[key]
|
||||||
|
|
||||||
def output_rst(self, root, source_suffix):
|
def output_rst(self, root, source_suffix):
|
||||||
|
if not len(self.objects):
|
||||||
|
raise ExtensionError("No API objects exist. Can't continue")
|
||||||
for id, obj in self.objects.items():
|
for id, obj in self.objects.items():
|
||||||
|
|
||||||
if not obj or not obj.top_level_object:
|
if not obj or not obj.top_level_object:
|
||||||
|
Loading…
Reference in New Issue
Block a user