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/ignore linting errors with newer pylint #98

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Feb 3, 2023

Fixes #97.

@felixfontein felixfontein merged commit 090fb92 into ansible-community:main Feb 3, 2023
@felixfontein felixfontein deleted the lint branch February 3, 2023 07:34
@@ -373,6 +373,7 @@ def _get_refresh_config(args: Any,
elif part == 'fragments-without-archives':
refresh_fragments = 'without-archives'
else:
# pylint:disable-next=broad-exception-raised
raise Exception(
Copy link
Contributor

Choose a reason for hiding this comment

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

This should raise a ValueError

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but that's not a change that should happen in this PR. It potentially modifies behavior for calling code.

Copy link
Contributor

Choose a reason for hiding this comment

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

try: ... except Exception: will work just the same, but perhaps it would be better suited for a new PR.

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.

Fix new pylint failures
2 participants