[ckan-changes] commit/ckanext-harvest: amercader: Fix bug with empty config
Bitbucket
commits-noreply at bitbucket.org
Tue Jun 28 14:05:08 UTC 2011
1 new changeset in ckanext-harvest:
http://bitbucket.org/okfn/ckanext-harvest/changeset/61844c8d2374/
changeset: 61844c8d2374
user: amercader
date: 2011-06-28 16:04:40
summary: Fix bug with empty config
affected #: 1 file (50 bytes)
--- a/ckanext/harvest/harvesters/ckanharvester.py Tue Jun 14 15:59:13 2011 +0100
+++ b/ckanext/harvest/harvesters/ckanharvester.py Tue Jun 28 15:04:40 2011 +0100
@@ -57,6 +57,9 @@
}
def validate_config(self,config):
+ if not config:
+ return config
+
try:
config_obj = json.loads(config)
except ValueError,e:
Repository URL: https://bitbucket.org/okfn/ckanext-harvest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list