Skip to content

Commit 7c3da4f

Browse files
client handle None
1 parent 8bf77f0 commit 7c3da4f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sentry_sdk/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ def _serialized_v1_attribute_to_serialized_v2_attribute(
149149
"type": "string",
150150
}
151151

152+
if attribute_value is None:
153+
return {
154+
"value": "None",
155+
"type": "string",
156+
}
157+
152158
return None
153159

154160

0 commit comments

Comments
 (0)