Skip to content

Commit 9411f42

Browse files
committed
Tx success set in __exit__
1 parent 37fdc34 commit 9411f42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neo4j/v1/session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ def __enter__(self):
518518
return self
519519

520520
def __exit__(self, exc_type, exc_value, traceback):
521+
self.success = False if exc_type else True
521522
self.close()
522523

523524
def run(self, statement, parameters=None):

0 commit comments

Comments
 (0)