Kaydet (Commit) f45501d8 authored tarafından Sandro Tosi's avatar Sandro Tosi

caught is the right pp of catch; thanks to Don Bennett from docs@

üst 187aa269
...@@ -8,7 +8,7 @@ with con: ...@@ -8,7 +8,7 @@ with con:
con.execute("insert into person(firstname) values (?)", ("Joe",)) con.execute("insert into person(firstname) values (?)", ("Joe",))
# con.rollback() is called after the with block finishes with an exception, the # 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: try:
with con: with con:
con.execute("insert into person(firstname) values (?)", ("Joe",)) con.execute("insert into person(firstname) values (?)", ("Joe",))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment