]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Move docs example statement where it makes more sense
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 16 Feb 2021 19:04:19 +0000 (20:04 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 16 Feb 2021 19:07:22 +0000 (20:07 +0100)
docs/transactions.rst

index ae7a0769a0ee766eb436c4777c8ecc9c582281cf..e4205aac72c0b38ed52c2754ccecd8b0ab64824f 100644 (file)
@@ -137,7 +137,7 @@ but not entirely committed yet.
             with conn.transaction() as inner_tx:
                 if isinstance(command, CancelCommand):
                     raise Rollback(outer_tx)
-            process_command(command)
+                process_command(command)
 
     # If `Rollback` is raised, it would propagate only up to this block,
     # and the program would continue from here with no exception.