Skip to content

Commit 48218ad

Browse files
committed
use string conversion
1 parent e875787 commit 48218ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yaramo/utils/enum_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
class EnumEncoder(json.JSONEncoder):
66
def default(self, o):
77
if isinstance(o, Enum):
8-
return o.name
8+
return str(o)
99
return super().default(o)

0 commit comments

Comments
 (0)