---
source: crates/ruff/src/rules/flake8_bugbear/mod.rs
---
B013.py:3:8: B013 [*] A length-one tuple literal is redundant. Write `except ValueError` instead of `except (ValueError,)`.
  |
3 | try:
4 |     pass
5 | except (ValueError,):
  |        ^^^^^^^^^^^^^ B013
6 |     pass
7 | except AttributeError:
  |
  = help: Replace with `except ValueError`

ℹ Suggested fix
1 1 | try:
2 2 |     pass
3   |-except (ValueError,):
  3 |+except ValueError:
4 4 |     pass
5 5 | except AttributeError:
6 6 |     pass


