Skip to content

Commit 95a532f

Browse files
authored
[pylint] Restore the fix safety docs for PLW0133 (#22211)
Summary -- Noticed while responding to #22201 that the last sentence here just ends abruptly. It turns out that I missed this change when reviewing #21382. Test Plan -- CI
1 parent c842de5 commit 95a532f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ use ruff_python_ast::PythonVersion;
3636
///
3737
/// ## Fix safety
3838
/// This rule's fix is marked as unsafe, as converting a useless exception
39+
/// statement to a `raise` statement will change the program's behavior.
3940
///
4041
/// [preview]: https://docs.astral.sh/ruff/preview/
4142
#[derive(ViolationMetadata)]

0 commit comments

Comments
 (0)