Skip to content

Commit

Permalink
Add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude committed Jan 19, 2022
1 parent f2def4b commit 423e1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo4j/_async/work/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def begin_transaction(self, metadata=None, timeout=None):
# TODO: Implement TransactionConfig consumption

if self._auto_result:
self._auto_result.consume()
await self._auto_result.consume()

if self._transaction:
raise TransactionError("Explicit transaction already open")
Expand Down

0 comments on commit 423e1e5

Please sign in to comment.