Skip to content

Commit 7f74f09

Browse files
fix transaction switch in delete
Co-authored-by: Raphael Guzman <[email protected]>
1 parent 3aa3189 commit 7f74f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datajoint/table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ def delete(self, transaction=True, safemode=None):
413413
if safemode:
414414
print('Deletes committed.')
415415
else:
416-
self.connection.cancel_transaction()
416+
if transaction:
417+
self.connection.cancel_transaction()
417418
if safemode:
418419
print('Deletes cancelled')
419420

0 commit comments

Comments
 (0)