From 1288a4d9e7781e776a5b7510a7ea16022edf6551 Mon Sep 17 00:00:00 2001 From: David Read Date: Fri, 13 Nov 2015 12:32:13 +0000 Subject: [PATCH] Reflow text to 79 char width. Warning not necessary with an exception I think. --- ckanext/harvest/logic/action/patch.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/ckanext/harvest/logic/action/patch.py b/ckanext/harvest/logic/action/patch.py index 30b87e3..cd21d97 100644 --- a/ckanext/harvest/logic/action/patch.py +++ b/ckanext/harvest/logic/action/patch.py @@ -11,13 +11,13 @@ def harvest_source_patch(context, data_dict): ''' Patch an existing harvest source - This method just proxies the request to package_patch, - which will update a harvest_source dataset type and the - HarvestSource object. All auth checks and validation will - be done there. We only make sure to set the dataset type. + This method just proxies the request to package_patch, which will update a + harvest_source dataset type and the HarvestSource object. All auth checks + and validation will be done there. We only make sure to set the dataset + type. - Note that the harvest source type (ckan, waf, csw, etc) - is now set via the source_type field. + Note that the harvest source type (ckan, waf, csw, etc) is now set via the + source_type field. All fields that are not provided, will be stay as they were before. @@ -55,8 +55,7 @@ def harvest_source_patch(context, data_dict): try: source = get_action('package_patch')(context, data_dict) except KeyError: - log.warn('This CKAN instance does not support package_patch, consider upgrading to CKAN >= 2.3 if needed.') - raise Exception('The harvest_source_patch action is not available on this version of CKAN') + raise Exception('The harvest_source_patch action is not available on ' + 'this version of CKAN') return source -