mirror of
https://github.com/python/cpython
synced 2024-10-17 15:28:20 +00:00
caught is the right pp of catch; thanks to Don Bennett from docs@
This commit is contained in:
parent
6f45d18c24
commit
567493fe26
|
@ -8,7 +8,7 @@
|
|||
con.execute("insert into person(firstname) values (?)", ("Joe",))
|
||||
|
||||
# con.rollback() is called after the with block finishes with an exception, the
|
||||
# exception is still raised and must be catched
|
||||
# exception is still raised and must be caught
|
||||
try:
|
||||
with con:
|
||||
con.execute("insert into person(firstname) values (?)", ("Joe",))
|
||||
|
|
Loading…
Reference in a new issue