]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Doc: Python's control flow construct is try/except not try/catch.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Jan 2024 17:22:00 +0000 (12:22 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Jan 2024 17:22:00 +0000 (12:22 -0500)
Very ancient thinko, dating evidently to 22690719e.
Spotted by gweatherby.

Discussion: https://postgr.es/m/170423637139.1288848.11840082988774620003@wrigleys.postgresql.org

doc/src/sgml/plpython.sgml

index c62361b6f80b60cf9c02e0a7c4c84757bff2de78..d7fbb4da0c4fff5073adcd13737cae2c5c5cab96 100644 (file)
@@ -1323,7 +1323,7 @@ plan = plpy.prepare("INSERT INTO operations (result) VALUES ($1)", ["text"])
 plpy.execute(plan, [result])
 $$ LANGUAGE plpythonu;
 </programlisting>
-    Note that the use of <literal>try/catch</literal> is still
+    Note that the use of <literal>try</literal>/<literal>except</literal> is still
     required.  Otherwise the exception would propagate to the top of
     the Python stack and would cause the whole function to abort with
     a <productname>PostgreSQL</productname> error, so that the