-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Fixes Formatting Exception #25088
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
Fixes Formatting Exception #25088
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3200ff9
Fixes Formatting Exception
EternalLearner42 8acc296
Fixed try/except block
EternalLearner42 871b2c2
Fixed whitespace
EternalLearner42 b5771c7
Updated variables
EternalLearner42 f681c80
Updated libraries, variables
EternalLearner42 93862be
Updated with the fixing of #25080
EternalLearner42 7c4dea9
Improved issue description
EternalLearner42 1eb54eb
added test for #25080
EternalLearner42 b8aa472
Mock subprocess
TomAugspurger 9cacbfa
Updated the issue
EternalLearner42 21f01be
Merge branch 'master' into PR_TOOL_MERGE_PR_25088
jreback a2b414c
fix test
jreback File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed try/except block
- Loading branch information
commit 8acc296640467571ba05309df91f1cac7be1fc60
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This try/ except should go below the catching of the OSError.
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.
Very well, I'll just declare the output variables outside of the try/catch block, I suppose
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.
@TomAugspurger I've updated it. Is this what you meant?
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 don't think you need the prior initializations unless you're going to refer, after a try/except block, to a variable that doesn't get created due to an exception. That can't happen here because of the returns, but OTOH the initializations don't hurt anything, and might make the code less likely to break due to a careless change in the future.
I'm any case, thanks for the fix!
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.
No problem! Feel free to let me know of any ways I can help further!