Skip to content

Commit

Permalink
Add missing await on database section on docs (encode#1226)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Trylesinski <[email protected]>
  • Loading branch information
aminalaee and Kludex authored Sep 16, 2021
1 parent 1ae43b4 commit 85ab09d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ async def populate_note(request):
await database.execute(query)
raise RuntimeError()
except:
transaction.rollback()
await transaction.rollback()
raise
else:
transaction.commit()
await transaction.commit()
```

## Test isolation
Expand Down

0 comments on commit 85ab09d

Please sign in to comment.