Skip to content

Commit 18a83ce

Browse files
minor user message change
1 parent 27b939f commit 18a83ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datajoint/base_relation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ def delete(self, verbose=True):
308308
already_in_transaction = self.connection.in_transaction
309309
safe = config['safemode']
310310
if already_in_transaction and safe:
311-
raise DataJointError('Cannot delete within a transaction in safemode. Set dj.config["setmode"] = False.')
311+
raise DataJointError('Cannot delete within a transaction in safemode. '
312+
'Set dj.config["setmode"] = False or complete the ongoing transaction first.')
312313
graph = self.connection.dependencies
313314
graph.load()
314315
delete_list = collections.OrderedDict()

0 commit comments

Comments
 (0)