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

Improve Bugzilla access denied message #435

Merged
merged 1 commit into from
May 27, 2024
Merged

Improve Bugzilla access denied message #435

merged 1 commit into from
May 27, 2024

Conversation

tysmith
Copy link
Collaborator

@tysmith tysmith commented May 25, 2024

No description provided.

@tysmith tysmith self-assigned this May 25, 2024
@tysmith tysmith requested a review from a team as a code owner May 25, 2024 01:08
Copy link

codecov bot commented May 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.60%. Comparing base (0816053) to head (9471b35).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #435      +/-   ##
==========================================
- Coverage   99.60%   99.60%   -0.01%     
==========================================
  Files          52       52              
  Lines        5582     5559      -23     
==========================================
- Hits         5560     5537      -23     
  Misses         22       22              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tysmith tysmith force-pushed the update-bugzilla branch 2 times, most recently from 24738c1 to 4294587 Compare May 27, 2024 16:40
@@ -127,6 +127,12 @@ def load(cls, bug_id: int) -> Optional["BugzillaBug"]:
return cls(bugzilla.get(bug_id))
except BugsyException as exc:
LOG.error("%s", exc.msg)
# Access Denied
if api_key is None and exc.code == 102:
LOG.info(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be warning?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The exception message is descriptive and printed with LOG.error(). This is a suggestion for local users.

@tysmith tysmith force-pushed the update-bugzilla branch from 4294587 to 9471b35 Compare May 27, 2024 17:11
@tysmith tysmith merged commit 52834f0 into master May 27, 2024
5 of 6 checks passed
@tysmith tysmith deleted the update-bugzilla branch May 27, 2024 17:30
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