Skip to content

Commit 175e5d7

Browse files
Add missing traceback line in f-string-in-exception docstring. (#12508)
## Summary Add missing traceback line in `f-string-in-exception` docstring. Solves #12504.
1 parent c03f257 commit 175e5d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ruff_linter/src/rules/flake8_errmsg/rules/string_in_exception.rs

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ impl Violation for RawStringInException {
9797
///
9898
/// Which will produce a traceback like:
9999
/// ```console
100+
/// Traceback (most recent call last):
100101
/// File "tmp.py", line 3, in <module>
101102
/// raise RuntimeError(msg)
102103
/// RuntimeError: 'Some value' is incorrect

0 commit comments

Comments
 (0)