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

Skip files that cannot be read #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gardockt
Copy link

@gardockt gardockt commented Oct 28, 2023

Added a simple IOException handling to readBytes method call - when the exception is thrown, a warning is logged and the file is skipped.

By the way, I'm not sure if this is intentional, but after reading the bytes InputStream.close method is called, which apparently does nothing. I left it in case this is intentional, so that this stream does not appear to be left open.

Partially fixes issue #5 - at the moment of writing this, there are two known exceptions that cause the crash (1 and 2), and this PR addresses the first one.

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

Successfully merging this pull request may close these issues.

1 participant