diff --git a/capellambse_context_diagrams/serializers.py b/capellambse_context_diagrams/serializers.py index b0176bd5..25056a27 100644 --- a/capellambse_context_diagrams/serializers.py +++ b/capellambse_context_diagrams/serializers.py @@ -126,7 +126,10 @@ class type that stores all previously named classes. styleclass: str | None derived = False if child["id"].startswith("__"): - styleclass, uuid = child["id"][2:].split(":", 1) + if ":" in child["id"]: + styleclass, uuid = child["id"][2:].split(":", 1) + else: + styleclass = uuid = child["id"][2:] if styleclass.startswith("Derived-"): styleclass = styleclass.removeprefix("Derived-") derived = True