pypa / twine

Utilities for interacting with PyPI
https://twine.readthedocs.io/
Apache License 2.0
1.61k stars 308 forks source link

Apply flake8-bugbear rule #1043

Closed DimitriPapadopoulos closed 10 months ago

DimitriPapadopoulos commented 10 months ago

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

sigmavirus24 commented 10 months ago

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

DimitriPapadopoulos commented 10 months ago

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