Skip to content

Commit 5c4b5c1

Browse files
Merge pull request #552 from ixcat/allow_direct_insert_msg
datajoint/table.py: add 'see allow_direct_insert' to direct_insert error message
2 parents 85aa404 + aa19845 commit 5c4b5c1

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)