Skip to content

CLN: catch specific Exceptions in _config #28310

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

Conversation

jbrockmendel
Copy link
Member

No description provided.

@@ -100,10 +100,13 @@ def _valid_locales(locales, normalize):
def _default_locale_getter():
try:
raw_locales = subprocess.check_output(["locale -a"], shell=True)
except subprocess.CalledProcessError as e:
raise type(e)(
Copy link
Member Author

Choose a reason for hiding this comment

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

apparently in the status quo this ends up raising TypeError because we are calling the CalledProcessError constructor incorrectly

Copy link
Member

Choose a reason for hiding this comment

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

Do we even need this at all then? Seems like it wasn't doing what was expected before so maybe can remove altogether?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was wondering this myself. Will change.

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 per request (and green)

@jreback jreback added the Clean label Sep 7, 2019
@jreback jreback added this to the 1.0 milestone Sep 7, 2019
@jreback
Copy link
Contributor

jreback commented Sep 7, 2019

looks fine, merge when ready (as you had a couple of questions)

@WillAyd WillAyd merged commit 7161b90 into pandas-dev:master Sep 7, 2019
@WillAyd
Copy link
Member

WillAyd commented Sep 7, 2019

Nice job @jbrockmendel - these cleanups definitely are making things more readable

@jbrockmendel jbrockmendel deleted the cln2 branch September 7, 2019 21:25
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants