Skip to content

CLN: fix bare excepts on close #28343

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 3 commits into from
Sep 10, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

We're down to only a handful of bare excepts. This is the first of ~4 PRs to handle them all more carefully.

self.handle.close()
except:
pass
if self.handle is not None and hasattr(self.handle, "close"):
Copy link
Contributor

Choose a reason for hiding this comment

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

yes I think we should just add it there

Copy link
Contributor

Choose a reason for hiding this comment

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

if you can update this here

Copy link
Member Author

Choose a reason for hiding this comment

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

changed

@jreback jreback added Clean Error Reporting Incorrect or improved errors from pandas labels Sep 8, 2019
@jreback jreback added this to the 1.0 milestone Sep 8, 2019
@jreback jreback merged commit 7814b0a into pandas-dev:master Sep 10, 2019
@jreback
Copy link
Contributor

jreback commented Sep 10, 2019

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the raiser2 branch September 10, 2019 14:59
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants