diff --git a/capellambse_context_diagrams/collectors/default.py b/capellambse_context_diagrams/collectors/default.py index 29124c88..91d5c6ac 100644 --- a/capellambse_context_diagrams/collectors/default.py +++ b/capellambse_context_diagrams/collectors/default.py @@ -61,7 +61,7 @@ def __init__( def process_context(self): if ( self.diagram.display_parent_relation - and hasattr(self.diagram.target, "owner") + and getattr(self.diagram.target, "owner", None) is not None and not isinstance(self.diagram.target.owner, generic.PackageTypes) ): box = self._make_box( diff --git a/docs/index.md b/docs/index.md index f057b3d5..de752e4e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -178,8 +178,6 @@ Available via `.context_diagram` on a [`ModelObject`][capellambse.model.common.e
Context diagram of PC Software [PAB]
-* [`pa.PhysicalFunction`][capellambse.model.layers.pa.PhysicalFunction] (PDFB) - - ??? example "[`pa.PhysicalFunction`][capellambse.model.layers.pa.PhysicalFunction] (PDFB)" ``` py