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.
Can I skip when certain error occurs but continue when others raise? #12729
Comments
|
Handle exceptions appropriately. |
I use python to load youtube_dl pakcage and scheduled a download list. What I want to do is to get the exact type of error. For example, I expect download continue if video is region restricted or private, as
ignoreerroris on, but if network goes down, say,urlopen erroror somewhatErrno -3, I want program save a checkpoint and exit.