Skip to content

Commit 1528006

Browse files
meshyLilyFirefly
andcommitted
Document possible transaction_if_not_already error
This function can raise an error, but that was not previously documented. Co-authored-by: Lily <code@lilyf.org>
1 parent 649d124 commit 1528006

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/reference/settings.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ on a per-test basis.
3535
(default: `True`)
3636

3737
[`transaction`][django_subatomic.db.transaction]
38+
and [`transaction_if_not_already`][django_subatomic.db.transaction_if_not_already]
3839
will raise `subatomic.db._UnhandledCallbacks` in tests
39-
if it detects any lingering unhandled after-commit callbacks
40-
when it's called.
40+
if they detect any lingering unhandled after-commit callbacks
41+
when they are called.
4142
[`part_of_a_transaction`][django_subatomic.test.part_of_a_transaction]
4243
will raise `subatomic.test._UnhandledCallbacks` instead.
4344
Note: because these exceptions each represent a programming error,

0 commit comments

Comments
 (0)