Skip to content

Commit 03a4747

Browse files
authored
Merge pull request #242 from raphaelahrens/master
Fixed #221 Got an error "AttributeError: 'str' ...
2 parents 6ca9f75 + 9c90a25 commit 03a4747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytm/pytm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,7 @@ def serialize(obj, nested=False):
19761976
value = value.name
19771977
elif isinstance(obj, Threat) and i == "target":
19781978
value = [v.__name__ for v in value]
1979-
elif i == "levels" or i == "sourceFiles":
1979+
elif i in ("levels", "sourceFiles", "assumptions"):
19801980
value = list(value)
19811981
elif (
19821982
not nested

0 commit comments

Comments
 (0)