Merge pull request #9 from joetsoi/2.0-dataset-sources

add return True to import stage of ckanharvester
This commit is contained in:
Adrià Mercader 2013-02-22 03:16:46 -08:00
commit 348f936601
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ class CKANHarvester(HarvesterBase):
pkg_role = model.PackageRole(package=package, user=user, role=model.Role.READER) pkg_role = model.PackageRole(package=package, user=user, role=model.Role.READER)
return True
except ValidationError,e: except ValidationError,e:
self._save_object_error('Invalid package with GUID %s: %r' % (harvest_object.guid, e.error_dict), self._save_object_error('Invalid package with GUID %s: %r' % (harvest_object.guid, e.error_dict),
harvest_object, 'Import') harvest_object, 'Import')