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

使用通用封装的_get,确保通用参数都生效,如超时,避免卡在这里 #61

Conversation

fzls
Copy link
Contributor

@fzls fzls commented May 15, 2021

get_folder_info_by_url中直接使用了requests.get,未设置timeout参数,可能导致卡在这里,应改为使用封装好的_get函数,其内部会设置timeout参数

参考信息:https://docs.python-requests.org/en/master/user/quickstart/#timeouts

@zaxtyson
Copy link
Owner

哈哈, 我大意了

@zaxtyson zaxtyson merged commit 779da62 into zaxtyson:master May 15, 2021
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