summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2024-06-03 16:03:56 (GMT)
committerGitHub <noreply@github.com>2024-06-03 16:03:56 (GMT)
commit1d4c2e4a877a48cdc8bcc9808d799b91c82b3757 (patch)
treeb1557ecdd66700385d26ae2e398dc34f54e2f964 /Doc/howto
parent153b118b78588209850cc2a4cbc977f193a3ab6e (diff)
downloadcpython-1d4c2e4a877a48cdc8bcc9808d799b91c82b3757.zip
cpython-1d4c2e4a877a48cdc8bcc9808d799b91c82b3757.tar.gz
cpython-1d4c2e4a877a48cdc8bcc9808d799b91c82b3757.tar.bz2
gh-119057: Use better error messages for zero division (#119066)
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/logging-cookbook.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 60d8820..3ed2dd6 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -2950,7 +2950,7 @@ When run, this produces a file with exactly two lines:
.. code-block:: none
28/01/2015 07:21:23|INFO|Sample message|
- 28/01/2015 07:21:23|ERROR|ZeroDivisionError: integer division or modulo by zero|'Traceback (most recent call last):\n File "logtest7.py", line 30, in main\n x = 1 / 0\nZeroDivisionError: integer division or modulo by zero'|
+ 28/01/2015 07:21:23|ERROR|ZeroDivisionError: division by zero|'Traceback (most recent call last):\n File "logtest7.py", line 30, in main\n x = 1 / 0\nZeroDivisionError: division by zero'|
While the above treatment is simplistic, it points the way to how exception
information can be formatted to your liking. The :mod:`traceback` module may be