Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)