Fix bug with empty config
This commit is contained in:
parent
c80e68a12f
commit
54de6759fe
|
@ -57,6 +57,9 @@ class CKANHarvester(HarvesterBase):
|
||||||
}
|
}
|
||||||
|
|
||||||
def validate_config(self,config):
|
def validate_config(self,config):
|
||||||
|
if not config:
|
||||||
|
return config
|
||||||
|
|
||||||
try:
|
try:
|
||||||
config_obj = json.loads(config)
|
config_obj = json.loads(config)
|
||||||
except ValueError,e:
|
except ValueError,e:
|
||||||
|
|
Loading…
Reference in New Issue