Skip to content

Commit

Permalink
Fix migration runner: use start_session without await
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-right committed Jan 23, 2025
1 parent 36a3452 commit 527a887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beanie/migrations/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def run_migration_class(
db = DBHandler.get_db()
if client is None:
raise RuntimeError("client must not be None")
async with await client.start_session() as s:
async with client.start_session() as s:
if use_transaction:
async with s.start_transaction():
await self.run_migrations(
Expand Down

0 comments on commit 527a887

Please sign in to comment.