Skip to content

Commit 5567291

Browse files
new: if the parent cannot be found, don't continue with the child
1 parent 9f3b15e commit 5567291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ckanext/datajson/datajson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def import_stage(self, harvest_object):
509509
if parent is not None:
510510
parent_pkg_id = parent['id']
511511
else:
512-
parent_pkg_id = None
512+
return []
513513

514514
if extra.key.startswith('catalog_'):
515515
catalog_extras[extra.key] = extra.value

0 commit comments

Comments
 (0)