Skip to content

Commit e143ce8

Browse files
Apply suggestions from code review
Co-authored-by: Dimitri Yatsenko <[email protected]>
1 parent 45938aa commit e143ce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datajoint/autopopulate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def populate(
182182
:type make_kwargs: dict, optional
183183
:return: a dict with two keys
184184
"success_count": the count of successful ``make()`` calls in this ``populate()`` call
185-
"error_list": the error list if "suppress_errors" is set to True, otherwise None
185+
"error_list": the error list that is filled if `suppress_errors` is True
186186
"""
187187
if self.connection.in_transaction:
188188
raise DataJointError("Populate cannot be called during a transaction.")
@@ -277,7 +277,7 @@ def handler(signum, frame):
277277

278278
return {
279279
"success_count": sum(success_list),
280-
"error_list": error_list if suppress_errors else None,
280+
"error_list": error_list,
281281
}
282282

283283
def _populate1(

0 commit comments

Comments
 (0)