Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.5k
Refactor handling in HacsRepository to use the new API client#4902
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR updates the GitHub API integration by replacing the legacyAIOGitHubAPINotModifiedException exception with the newerGitHubNotModifiedException, and modernizes theasync_get_legacy_repository_object method to use the newgithubapi interface instead of the deprecatedget_repo method.
Key changes:
- Updated exception handling to use
GitHubNotModifiedExceptioninstead ofAIOGitHubAPINotModifiedException - Refactored
async_get_legacy_repository_objectto use the newself.hacs.githubapi.repos.get()API - Simplified exception handling by removing redundant exception types from the catch block
💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
No description provided.