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

Apply flake8-bugbear rule #1043

Closed
wants to merge 1 commit into from

Conversation

DimitriPapadopoulos
Copy link
Contributor

B904 Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling

B904 Within an `except` clause, raise exceptions with
     `raise ... from err` or `raise ... from None` to
     distinguish them from errors in exception handling
@sigmavirus24
Copy link
Member

We don't use bugbear. Following the rule that isn't enforced is a pointless exercise without that plugin added.

@DimitriPapadopoulos
Copy link
Contributor Author

bugbear would be a good addition. It found a couple actual bugs in other pypa projects.

@DimitriPapadopoulos DimitriPapadopoulos deleted the bugbear branch January 6, 2024 09:10
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.

None yet

2 participants