Closed DimitriPapadopoulos closed 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
except
raise ... from err
raise ... from None
We don't use bugbear. Following the rule that isn't enforced is a pointless exercise without that plugin added.
bugbear would be a good addition. It found a couple actual bugs in other pypa projects.
B904 Within an
except
clause, raise exceptions withraise ... from err
orraise ... from None
to distinguish them from errors in exception handling