Skip to content

Commit 291a468

Browse files
author
Thinh Nguyen
committed
return False if nothing gets populated in ._populate1()
1 parent e143ce8 commit 291a468

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datajoint/autopopulate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def _populate1(
290290
:param suppress_errors: bool if errors should be suppressed and returned
291291
:param return_exception_objects: if True, errors must be returned as objects
292292
:return: (key, error) when suppress_errors=True,
293-
True if successfully invoke one `make()` call, otherwise None
293+
True if successfully invoke one `make()` call, otherwise False
294294
"""
295295
make = self._make_tuples if hasattr(self, "_make_tuples") else self.make
296296

@@ -341,6 +341,8 @@ def _populate1(
341341
finally:
342342
self.__class__._allow_insert = False
343343

344+
return False
345+
344346
def progress(self, *restrictions, display=False):
345347
"""
346348
Report the progress of populating the table.

0 commit comments

Comments
 (0)