-
Notifications
You must be signed in to change notification settings - Fork 82
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
为什么urllib.error.URLError捕获不了异常 #2
Comments
@dirtyluke 贴一下你的报错信息,看能不能尽量详细一些 |
不好意思现在才回复。。。 During handling of the above exception, another exception occurred: Traceback (most recent call last): |
解决了,自己前面设置的超时设置太长了,网上说的是可能服务器自动断开了连接,但客户端不知道,才产生的错误,把超时时间缩短就能捕获了 |
我的代码在这里
用的是python3.6,抓取主播信息时老是报URLError错误,但是却捕获不了,能帮忙看一下吗
The text was updated successfully, but these errors were encountered: