wrong-exception-operation / W0716#
Invalid exception operation. %s
Used when an operation is done against an exception, but the operation is not valid for the exception in question. Usually emitted when having binary operations between exceptions in except handlers.
try: 1/0 except (ValueError + TypeError): # [wrong-exception-operation] pass
try: 1/0 except (ValueError, TypeError): pass
Created by the exceptions checker.