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

fix(similarity): Add catch for no module and filename in the ui #81390

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jangjodi
Copy link
Member

Add exception check for no filename and module in the ui

@jangjodi jangjodi requested a review from a team as a code owner November 27, 2024 20:37
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 27, 2024
@@ -87,6 +88,8 @@ def get(self, request: Request, group) -> Response:
stacktrace_string = get_stacktrace_string(grouping_info)
except TooManyOnlySystemFramesException:
stacktrace_string = ""
except NoFilenameOrModuleException:
stacktrace_string = ""
Copy link
Member

Choose a reason for hiding this comment

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

I would add an extra block and a logger.exception() to find unexpected errors.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ssues/endpoints/group_similar_issues_embeddings.py 0.00% 5 Missing ⚠️
src/sentry/seer/similarity/utils.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #81390      +/-   ##
==========================================
- Coverage   80.37%   80.37%   -0.01%     
==========================================
  Files        7231     7231              
  Lines      319890   319899       +9     
  Branches    20810    20810              
==========================================
+ Hits       257120   257125       +5     
- Misses      62377    62381       +4     
  Partials      393      393              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants