From 792504b24f46c301457a5d46c398924013b27ffc Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 5 Feb 2022 23:43:13 +0100 Subject: [PATCH] Fix typo/improve errors docs --- docs/api/errors.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/errors.rst b/docs/api/errors.rst index 388d3870c..4c44a4110 100644 --- a/docs/api/errors.rst +++ b/docs/api/errors.rst @@ -46,7 +46,7 @@ These classes are exposed both by this module and the root `psycopg` module. The code of the error, if defined. This is a class attribute defined for all the - :ref:`sqlstate-exceptions` classed, `None` for the base classes. + :ref:`sqlstate-exceptions` classes, `!None` for the base classes. .. autoexception:: Warning() .. autoexception:: InterfaceError() @@ -70,8 +70,8 @@ Error diagnostics .. autoclass:: Diagnostic() - The object is returned by the `Error.diag` attribute and is passed to the - callback functions registered with + The object is available as the `~psycopg.Error`.\ `~psycopg.Error.diag` + attribute and is passed to the callback functions registered with `~psycopg.Connection.add_notice_handler()`. All the information available from the :pq:`PQresultErrorField()` function -- 2.47.2