From f97e3b4c6ccd45600952f819b5f0c6a5355b4fa2 Mon Sep 17 00:00:00 2001 From: joetsoi Date: Fri, 22 Feb 2013 10:13:36 +0000 Subject: [PATCH] add return True to import stage of ckanharvester Was causing queue.py to report that the import had errored. --- ckanext/harvest/harvesters/ckanharvester.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ckanext/harvest/harvesters/ckanharvester.py b/ckanext/harvest/harvesters/ckanharvester.py index 9ba05db..4919098 100644 --- a/ckanext/harvest/harvesters/ckanharvester.py +++ b/ckanext/harvest/harvesters/ckanharvester.py @@ -293,6 +293,7 @@ class CKANHarvester(HarvesterBase): pkg_role = model.PackageRole(package=package, user=user, role=model.Role.READER) + return True except ValidationError,e: self._save_object_error('Invalid package with GUID %s: %r' % (harvest_object.guid, e.error_dict), harvest_object, 'Import')