Fix bug with empty config

This commit is contained in:
Adrià Mercader 2011-06-28 15:04:40 +01:00
parent c80e68a12f
commit 54de6759fe
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ class CKANHarvester(HarvesterBase):
}
def validate_config(self,config):
if not config:
return config
try:
config_obj = json.loads(config)
except ValueError,e: