Skip to content

Commit 96ea71f

Browse files
Handle no release when uploading profiles (getsentry#1548)
* Handle no release when uploading profiles * Using get method instead of try block
1 parent 89c800b commit 96ea71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def capture_event(
403403
if is_transaction:
404404
if "profile" in event_opt:
405405
event_opt["profile"]["transaction_id"] = event_opt["event_id"]
406-
event_opt["profile"]["version_name"] = event_opt["release"]
406+
event_opt["profile"]["version_name"] = event_opt.get("release", "")
407407
envelope.add_profile(event_opt.pop("profile"))
408408
envelope.add_transaction(event_opt)
409409
else:

0 commit comments

Comments
 (0)