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
try:
raiseException("We want to hide this error message")
exceptException:
try:
raiseException("We want to show this")
exceptExceptionasexc:
raiseexcfromNone
ruff with TRY201 selected tells us:
TRY201 Use `raise` without specifying exception name
Take the following example:
ruff
withTRY201
selected tells us:However, we cannot do
raise from None
.See https://peps.python.org/pep-0409/#proposal for context of this syntax.
The text was updated successfully, but these errors were encountered: