You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I would say that should be allowed. (There are other rules in Ruff that would then suggest you remove the redundant alias, but on its own it's within the bounds of BLE001 to allow this IMO.)
## Summary
This allows `raise from` in BLE001.
```python
try:
...
except Exception as e:
raise ValueError from e
```
Fixes#10806
## Test Plan
Test case added.
Hi,
currently this is allowed in BLE001:
But it may be a good idea to allow this format as well (as pylint
broad-exception-caught
does):Thanks in advance!
The text was updated successfully, but these errors were encountered: