Skip to content

Commit aa19845

Browse files
author
Chris Turner
committed
datajoint/table.py: add 'see allow_direct_insert to direct_insert error message
1 parent 5a17452 commit aa19845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def insert(self, rows, replace=False, skip_duplicates=False, ignore_extra_fields
170170
# prohibit direct inserts into auto-populated tables
171171
if not (allow_direct_insert or getattr(self, '_allow_insert', True)): # _allow_insert is only present in AutoPopulate
172172
raise DataJointError(
173-
'Auto-populate tables can only be inserted into from their make methods during populate calls.')
173+
'Auto-populate tables can only be inserted into from their make methods during populate calls. (see allow_direct_insert)')
174174

175175
heading = self.heading
176176
if inspect.isclass(rows) and issubclass(rows, QueryExpression): # instantiate if a class

0 commit comments

Comments
 (0)