diff --git a/ckanext/harvest/harvesters/base.py b/ckanext/harvest/harvesters/base.py index 35c1881..da2fb1b 100644 --- a/ckanext/harvest/harvesters/base.py +++ b/ckanext/harvest/harvesters/base.py @@ -193,6 +193,10 @@ class HarvesterBase(SingletonPlugin): except NotFound: # Package needs to be created + # Get rid of auth audit on the context otherwise we'll get an + # exception + context.pop('__auth_audit', None) + # Set name if not already there package_dict.setdefault('name', self._gen_new_name(package_dict['title']))