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

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


