Skip to content

handle empty data files when loading, closes #148 #149

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

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

basnijholt
Copy link
Member

No description provided.

@basnijholt basnijholt requested a review from jbweston January 23, 2019 08:50
Copy link
Contributor

@jbweston jbweston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't catching TypeError too general? If someone passes something of the wrong type for fname (e.g. an open file, instead of a file name) this would also raise a TypeError, and that is something that we should not suppress.

Depending on which bit cannot handle empty files we should explicitly check for this condition

@basnijholt basnijholt force-pushed the master branch 4 times, most recently from cb83625 to 7ccb583 Compare January 25, 2019 15:36
@basnijholt
Copy link
Member Author

@jbweston you are right. I fixed it in the appropriate place now.

What do you think, should this go to stable or master?

@jbweston
Copy link
Contributor

It can go on stable

@basnijholt basnijholt changed the base branch from master to stable-0.7 January 30, 2019 13:56
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.

2 participants