修复插件商店获取插件信息提示302异常#1904
Merged
Hidden character warning
The head ref may contain hidden characters: "\u63d2\u4ef6\u5546\u5e97302"
Merged
Conversation
HibiKier
approved these changes
May 10, 2025
HibiKier
approved these changes
May 21, 2025
| logger.info(f"开始获取 {url}..") | ||
| response = await cls._get_single(url, **kwargs) | ||
| if check_status_code and response.status_code != check_status_code: | ||
| raise Exception(f"Status code error: {response.status_code} != {check_status_code}") |
Collaborator
There was a problem hiding this comment.
格式化一下这里
raise Exception(
f"Status code error: {response.status_code} != {check_status_code}"
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
由于调用加速地址的时候状态码为302会被认为正常返回,但是所有的加速地址又没有调用完毕导致的插件商店经常报错302异常