-
Notifications
You must be signed in to change notification settings - Fork 450
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
Stricter signature for ErrorHandler.gui_error() #6846
Merged
Merged
Conversation
This file contains 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
kozlovsky
force-pushed
the
fix/gui_error_signature
branch
from
April 4, 2022 14:54
00f8219
to
54bc574
Compare
retest this please |
kozlovsky
force-pushed
the
fix/gui_error_signature
branch
from
April 6, 2022 15:08
54bc574
to
9d0f65c
Compare
retest this please |
1 similar comment
retest this please |
kozlovsky
requested review from
a team and
drew2a
and removed request for
a team
April 6, 2022 15:52
drew2a
previously approved these changes
Apr 6, 2022
kozlovsky
force-pushed
the
fix/gui_error_signature
branch
from
April 6, 2022 15:57
9d0f65c
to
a9d3e47
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
kozlovsky
force-pushed
the
fix/gui_error_signature
branch
from
April 8, 2022 06:22
a9d3e47
to
e588249
Compare
retest this please |
1 similar comment
retest this please |
drew2a
force-pushed
the
main
branch
2 times, most recently
from
April 14, 2022 14:39
a8c07e5
to
5540c4f
Compare
drew2a
force-pushed
the
main
branch
2 times, most recently
from
June 23, 2022 11:54
2370caf
to
21168b4
Compare
kozlovsky
force-pushed
the
fix/gui_error_signature
branch
from
September 9, 2022 15:08
e588249
to
512620d
Compare
drew2a
approved these changes
Sep 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The current signature of the
gui_error
function is not strict enough. In practice, the function is always called with three arguments. Because of insufficient checks, inside thegui_eror
function, PyCharm shows warnings "local variable might be referenced before assignment". This PR fixes PyCharm warnings and makes variable names for the exception and the exception type more "traditional".Also, the PR uses the
caplog
pytest fixture to check log messages in tests.