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

Can I skip when certain error occurs but continue when others raise? #12729

Closed
Vargnatt opened this issue Apr 13, 2017 · 1 comment
Closed

Can I skip when certain error occurs but continue when others raise? #12729

Vargnatt opened this issue Apr 13, 2017 · 1 comment

Comments

@Vargnatt
Copy link

@Vargnatt Vargnatt commented Apr 13, 2017

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 ignoreerror is on, but if network goes down, say, urlopen error or somewhat Errno -3 , I want program save a checkpoint and exit.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 13, 2017

Handle exceptions appropriately.

@dstftw dstftw closed this Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.