.. _binary-op-exception: binary-op-exception / W0711 =========================== **Message emitted:** ``Exception to catch is the result of a binary "%s" operation`` **Description:** *Used when the exception to catch is of the form "except A or B:". If intending to catch multiple, rewrite as "except (A, B):"* **Problematic code:** .. literalinclude:: /data/messages/b/binary-op-exception/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/b/binary-op-exception/good.py :language: python Created by the `exceptions `__ checker.