Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle no release when uploading profiles #1548

Merged

Conversation

szokeasaurusrex
Copy link
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.

Unverified

This user has not yet uploaded their public signing key.
@@ -403,7 +403,10 @@ def capture_event(
if is_transaction:
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
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", "")

Unverified

This user has not yet uploaded their public signing key.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…rror
@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.

None yet

2 participants