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