Skip to content

BUG: use TypeError (not OSError) when read_csv expects file path name or file-like object #43443

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

Closed
wants to merge 1 commit into from

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented Sep 7, 2021

The exception class was changed from IOError (alias of OSError) to TypeError when read_csv expects file path or file-like object.

This bug is split from #43366, but with more clear intent and added test.

@jreback
Copy link
Contributor

jreback commented Sep 7, 2021

just add this to the other PR pls

@mwtoews mwtoews closed this Sep 7, 2021
@mwtoews mwtoews deleted the bug-parser-typeerror branch September 7, 2021 11:19
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