From 27f68f8659a648cc9ed3e71f690959ed8a130c5a Mon Sep 17 00:00:00 2001 From: David Cramer Date: Sat, 20 Dec 2014 12:02:26 -0800 Subject: [PATCH] Correct scoping of savepoint example --- docs/topics/db/transactions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/db/transactions.txt b/docs/topics/db/transactions.txt index 5fb66ca6846..66ef6d42e9a 100644 --- a/docs/topics/db/transactions.txt +++ b/docs/topics/db/transactions.txt @@ -492,8 +492,8 @@ you can roll back the single offending operation, rather than the entire transaction. For example:: a.save() # Succeeds, and never undone by savepoint rollback + sid = transaction.savepoint() try: - sid = transaction.savepoint() b.save() # Could throw exception transaction.savepoint_commit(sid) except IntegrityError: