---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLW0711 Exception to catch is the result of a binary `or` operation
 --> binary_op_exception.py:3:8
  |
1 | try:
2 |     1 / 0
3 | except ZeroDivisionError or ValueError as e:  # [binary-op-exception]
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 |     pass
  |

PLW0711 Exception to catch is the result of a binary `and` operation
 --> binary_op_exception.py:8:8
  |
6 | try:
7 |     raise ValueError
8 | except ZeroDivisionError and ValueError as e:  # [binary-op-exception]
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 |     print(e)
  |
