Skip to content

Commit

Permalink
Merge pull request #242 from raphaelahrens/master
Browse files Browse the repository at this point in the history
Fixed #221 Got an error "AttributeError: 'str' ...
  • Loading branch information
izar authored Apr 18, 2024
2 parents 6ca9f75 + 9c90a25 commit 03a4747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytm/pytm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ def serialize(obj, nested=False):
value = value.name
elif isinstance(obj, Threat) and i == "target":
value = [v.__name__ for v in value]
elif i == "levels" or i == "sourceFiles":
elif i in ("levels", "sourceFiles", "assumptions"):
value = list(value)
elif (
not nested
Expand Down

0 comments on commit 03a4747

Please sign in to comment.