Skip to content

Commit ba9df31

Browse files
committed
.
1 parent 538129a commit ba9df31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ def serialize_attribute(val: "AttributeValue") -> "SerializedAttributeValue":
21012101

21022102
# Only lists of elements of a single type are supported
21032103
ty = type(val[0])
2104-
if all(isinstance(v, ty) for v in val):
2104+
if ty in (int, str, bool, float) and all(isinstance(v, ty) for v in val):
21052105
return {"value": val, "type": "array"}
21062106

21072107
# Coerce to string if we don't know what to do with the value. This should

0 commit comments

Comments
 (0)