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

F841 [*] Local variable `x` is assigned to but never used
  --> <filename>:13:30
   |
11 |         try:
12 |             pass
13 |         except ValueError as x:
   |                              ^
14 |             pass
   |
help: Remove assignment to unused variable `x`
   |
12 |             pass
   -         except ValueError as x:
13 +         except ValueError:
14 |             pass
   |
