Skip to content

Handle no release when uploading profiles#1548

Merged
szokeasaurusrex merged 3 commits intomasterfrom
szokeasaurusrex/fix/profiling-no-release-error
Aug 8, 2022
Merged

Handle no release when uploading profiles#1548
szokeasaurusrex merged 3 commits intomasterfrom
szokeasaurusrex/fix/profiling-no-release-error

Conversation

@szokeasaurusrex
Copy link
Copy Markdown
Member

We noticed that an error occurs when a profile is being uploaded and there is no release set (the error can only occur when profiling is enabled). This PR stops the error from occurring.

if "profile" in event_opt:
event_opt["profile"]["transaction_id"] = event_opt["event_id"]
event_opt["profile"]["version_name"] = event_opt["release"]
try:
Copy link
Copy Markdown
Member

@sl0thentr0py sl0thentr0py Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try:
event_opt["profile"]["version_name"] = event_opt.get("release", "")

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) August 8, 2022 19:06
@szokeasaurusrex szokeasaurusrex merged commit 96ea71f into master Aug 8, 2022
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/fix/profiling-no-release-error branch August 8, 2022 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants