Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65425b4

Browse files
committed
Issue #21245: updated documentation on exception() method and function.
1 parent ebc1a30 commit 65425b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/logging.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ is the module's name in the Python package namespace.
250250
interpreted as for :meth:`debug`.
251251

252252

253-
.. method:: Logger.exception(msg, *args)
253+
.. method:: Logger.exception(msg, *args, **kwargs)
254254

255255
Logs a message with level :const:`ERROR` on this logger. The arguments are
256256
interpreted as for :meth:`debug`. Exception info is added to the logging
@@ -992,7 +992,7 @@ functions.
992992
are interpreted as for :func:`debug`.
993993

994994

995-
.. function:: exception(msg, *args)
995+
.. function:: exception(msg, *args, **kwargs)
996996

997997
Logs a message with level :const:`ERROR` on the root logger. The arguments are
998998
interpreted as for :func:`debug`. Exception info is added to the logging

0 commit comments

Comments
 (0)