diff --git a/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs b/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs index 6eba84adc3..c70a4ba8da 100644 --- a/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs +++ b/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs @@ -36,6 +36,7 @@ use ruff_python_ast::PythonVersion; /// /// ## Fix safety /// This rule's fix is marked as unsafe, as converting a useless exception +/// statement to a `raise` statement will change the program's behavior. /// /// [preview]: https://docs.astral.sh/ruff/preview/ #[derive(ViolationMetadata)]