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

ℹ Safe fix
4 4 | 
5 5 |     try:
6 6 |         1 / 0
7   |-    except Exception as x:
  7 |+    except Exception:
8 8 |         pass
9 9 | 
10 10 |     # No error here, though it should arguably be an F821 error. `x` will


