Permalink
Browse files

with statement doesn't check for dooming

  • Loading branch information...
1 parent 63d4c8e commit 611707a959dab259d32c583c724c2a2278f24f54 @dag dag committed Jun 8, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 book/transactions.rst
View
@@ -775,7 +775,9 @@ have used this code after setting up our session:
We can have as many statements as we like inside the with block. If an exception
occurs, the transaction will be aborted at the end. Otherwise, it will be
-committed.
+committed. Note that if you doom the transaction inside the context, it
+will still try to commit which will result in a DoomedTransaction
+exception.
Take advantage of the notes feature

0 comments on commit 611707a

Please sign in to comment.