Skip to content
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

Fix pylint failure #4607

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Fix pylint failure #4607

merged 2 commits into from
Nov 10, 2023

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Nov 9, 2023

The KRAConnector.deregister() and TPSConnector.deregister() are always executed with critical_failure=True, so the param can be dropped and the the code that uses the param can be simplified, and also the outer try-except block can be removed.

This will also fix pylint broad-exception-caught failure.

The KRAConnector.deregister() is always executed with
critical_failure=True, so the param can be dropped and the
the code that uses the param can be simplified, and also
the outer try-except block can be removed. This will also
fix pylint broad-exception-caught failure.
The TPSConnector.deregister() is always executed with
critical_failure=True, so the param can be dropped and the
the code that uses the param can be simplified, and also
the outer try-except block can be removed.
@edewata edewata requested a review from fmarco76 November 9, 2023 18:24
Copy link

sonarqubecloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@edewata edewata changed the title Drop critical_failure params Fix pylint failure Nov 9, 2023
Copy link
Member

@fmarco76 fmarco76 left a comment

Choose a reason for hiding this comment

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

LGTM

@edewata
Copy link
Contributor Author

edewata commented Nov 10, 2023

@fmarco76 Thanks!

@edewata edewata merged commit 901be4a into dogtagpki:master Nov 10, 2023
132 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants