---
source: crates/ruff_linter/src/rules/pyflakes/mod.rs
---
<filename>:7:26: F841 [*] Local variable `x` is assigned to but never used
  |
5 |     try:
6 |         pass
7 |     except ValueError as x:
  |                          ^ F841
8 |         pass
  |
  = help: Remove assignment to unused variable `x`

ℹ Safe fix
4 4 | def f():
5 5 |     try:
6 6 |         pass
7   |-    except ValueError as x:
  7 |+    except ValueError:
8 8 |         pass
9 9 | 
10 10 |     # This should resolve to the `x` in `x = 1`.


