Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Retry download when getting WinError 10060 instead of hard exit #21235
Comments
|
For any work on this you must provide reproducible environment. |
|
I'm having the same problem. Solution should be a simple 1 line of code: if WinError 10060 then retry |
Checklist
Description
I'd like to request a feature where it retry to download video when WinError 10060 occured. My internet is not that good and I'm getting this at random occasion. Of course, when I re-invoke the same command it tries to resume where I left off, but again because my internet is not very good, it happends again at random occasion. It's somewhat annoying because when I start invoking the command, I just left the command running in background and doing anything else for few minutes and got disappointment when it actually fails to download because WinError 10060. It would probably a good idea to retry few times and if error keeps occuring, then give up.
Please do not tell me to fix my internet. This is somewhat the decent internet I can get in my area and I have no idea if my ISP is able to fix this.
I attached traceback it occured. I don't know if it's relevant for feature request but I'll put it anyway.