summaryrefslogtreecommitdiff
path: root/doc/data
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data')
-rw-r--r--doc/data/messages/w/wrong-exception-operation/bad.py4
-rw-r--r--doc/data/messages/w/wrong-exception-operation/details.rst1
-rw-r--r--doc/data/messages/w/wrong-exception-operation/good.py5
3 files changed, 8 insertions, 2 deletions
diff --git a/doc/data/messages/w/wrong-exception-operation/bad.py b/doc/data/messages/w/wrong-exception-operation/bad.py
new file mode 100644
index 000000000..20fcc2aab
--- /dev/null
+++ b/doc/data/messages/w/wrong-exception-operation/bad.py
@@ -0,0 +1,4 @@
+try:
+ 1/0
+except (ValueError + TypeError): # [wrong-exception-operation]
+ pass
diff --git a/doc/data/messages/w/wrong-exception-operation/details.rst b/doc/data/messages/w/wrong-exception-operation/details.rst
deleted file mode 100644
index ab8204529..000000000
--- a/doc/data/messages/w/wrong-exception-operation/details.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !
diff --git a/doc/data/messages/w/wrong-exception-operation/good.py b/doc/data/messages/w/wrong-exception-operation/good.py
index c40beb573..4171dbb60 100644
--- a/doc/data/messages/w/wrong-exception-operation/good.py
+++ b/doc/data/messages/w/wrong-exception-operation/good.py
@@ -1 +1,4 @@
-# This is a placeholder for correct code for this message.
+try:
+ 1/0
+except (ValueError, TypeError):
+ pass