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

handling exceptions while streaming #18

Open
ael-code opened this issue Mar 4, 2016 · 0 comments
Open

handling exceptions while streaming #18

ael-code opened this issue Mar 4, 2016 · 0 comments

Comments

@ael-code
Copy link

ael-code commented Mar 4, 2016

This is the case scenario:

  • create a zipsrteam.ZipFile
  • add some files through the ZipFile.write function
  • delete some of the added files
  • stream the content using ZipFile.__iter__

So while streaming, you try to open a file but an exception (OSError or IOError) is raised. You want to skip that specific file and stream all other valid elements.

I did not find any way to achieve this behaviour. Maybe some option like skip_on_error could help.

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

No branches or pull requests

1 participant