diff --git a/autoapi/mappers/dotnet.py b/autoapi/mappers/dotnet.py index a14593b..7bc28f1 100644 --- a/autoapi/mappers/dotnet.py +++ b/autoapi/mappers/dotnet.py @@ -168,6 +168,8 @@ class DotNetSphinxMapper(SphinxMapperBase): del self.namespaces[key] 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(): if not obj or not obj.top_level_object: