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

If file is truncated/corrupted, catch and report this error #19

Open
jdhayhurst opened this issue Jun 21, 2023 · 2 comments
Open

If file is truncated/corrupted, catch and report this error #19

jdhayhurst opened this issue Jun 21, 2023 · 2 comments

Comments

@jdhayhurst
Copy link
Collaborator

catch the pandas parser errors e.g. EOFError: Compressed file ended before the end-of-stream marker was reached and report this correctly.

@ljwh2
Copy link

ljwh2 commented Jul 6, 2023

@jdhayhurst to flesh out this ticket

@jdhayhurst
Copy link
Collaborator Author

When parsing the file with Pandas, add an exception catch for the EOFError so that we can report this back to users in a user friendly manner. I think the point to catch the exception would be here:

df = pd.read_table(self.filename,
. How it's handled from there is up to you, but you'll want to be aware of the exception from the validate module.

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

2 participants