From 567493fe263e4e4ee50fcb0648ce3f2bbfc84db7 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Mon, 31 Oct 2011 02:41:06 +0100 Subject: [PATCH] caught is the right pp of catch; thanks to Don Bennett from docs@ --- Doc/includes/sqlite3/ctx_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/includes/sqlite3/ctx_manager.py b/Doc/includes/sqlite3/ctx_manager.py index b8e43325a92..7af4ad1ecfb 100644 --- a/Doc/includes/sqlite3/ctx_manager.py +++ b/Doc/includes/sqlite3/ctx_manager.py @@ -8,7 +8,7 @@ with con: 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",))