Skip to content

Commit 76ba8a8

Browse files
committed
Doc: Python's control flow construct is try/except not try/catch.
Very ancient thinko, dating evidently to 2269071. Spotted by gweatherby. Discussion: https://postgr.es/m/170423637139.1288848.11840082988774620003@wrigleys.postgresql.org
1 parent dffde5b commit 76ba8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/plpython.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ plan = plpy.prepare("INSERT INTO operations (result) VALUES ($1)", ["text"])
11751175
plpy.execute(plan, [result])
11761176
$$ LANGUAGE plpython3u;
11771177
</programlisting>
1178-
Note that the use of <literal>try/catch</literal> is still
1178+
Note that the use of <literal>try</literal>/<literal>except</literal> is still
11791179
required. Otherwise the exception would propagate to the top of
11801180
the Python stack and would cause the whole function to abort with
11811181
a <productname>PostgreSQL</productname> error, so that the

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy