Only try to create/match a organization if there is a remote_org
This commit is contained in:
parent
dd1acd0c6b
commit
8b5d70c6fe
|
@ -309,6 +309,7 @@ class CKANHarvester(HarvesterBase):
|
||||||
remote_org = package_dict['owner_org']
|
remote_org = package_dict['owner_org']
|
||||||
context = {'model': model, 'session': Session, 'user': 'harvest'}
|
context = {'model': model, 'session': Session, 'user': 'harvest'}
|
||||||
|
|
||||||
|
if remote_org:
|
||||||
try:
|
try:
|
||||||
data_dict = {'id': remote_org}
|
data_dict = {'id': remote_org}
|
||||||
org = get_action('organization_show')(context, data_dict)
|
org = get_action('organization_show')(context, data_dict)
|
||||||
|
|
Loading…
Reference in New Issue