From 175e5d7b8840d8e05b30794cb1554c68c497129a Mon Sep 17 00:00:00 2001 From: Uriya Harpeness <53301931+UriyaHarpeness@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:22:05 +0300 Subject: [PATCH] Add missing traceback line in `f-string-in-exception` docstring. (#12508) ## Summary Add missing traceback line in `f-string-in-exception` docstring. Solves https://github.com/astral-sh/ruff/issues/12504. --- .../src/rules/flake8_errmsg/rules/string_in_exception.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruff_linter/src/rules/flake8_errmsg/rules/string_in_exception.rs b/crates/ruff_linter/src/rules/flake8_errmsg/rules/string_in_exception.rs index a7298ea73c439..60da28d45a9e7 100644 --- a/crates/ruff_linter/src/rules/flake8_errmsg/rules/string_in_exception.rs +++ b/crates/ruff_linter/src/rules/flake8_errmsg/rules/string_in_exception.rs @@ -97,6 +97,7 @@ impl Violation for RawStringInException { /// /// Which will produce a traceback like: /// ```console +/// Traceback (most recent call last): /// File "tmp.py", line 3, in /// raise RuntimeError(msg) /// RuntimeError: 'Some value' is incorrect