-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
Conversation
@@ -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)( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
looks fine, merge when ready (as you had a couple of questions) |
Nice job @jbrockmendel - these cleanups definitely are making things more readable |
No description provided.