Skip to content

Commit

Permalink
Fix tuple unpacking error with associations (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko authored May 27, 2024
1 parent 8634a24 commit 3db5645
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion capellambse_context_diagrams/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3db5645

Please sign in to comment.