Don't require ckanext-harvest, fixes #302
This commit is contained in:
parent
53d7a18519
commit
5536382b59
|
@ -15,10 +15,14 @@ from pprint import pprint
|
|||
from ckan import model
|
||||
from ckan.model.package_extra import PackageExtra
|
||||
|
||||
from ckanext.spatial.lib import save_package_extent
|
||||
from ckanext.spatial.lib.reports import validation_report
|
||||
from ckanext.spatial.harvesters import SpatialHarvester
|
||||
from ckanext.spatial.model import ISODocument
|
||||
try:
|
||||
from ckanext.spatial.lib import save_package_extent
|
||||
from ckanext.spatial.lib.reports import validation_report
|
||||
from ckanext.spatial.harvesters import SpatialHarvester
|
||||
from ckanext.spatial.model import ISODocument
|
||||
except ImportError:
|
||||
# ckanext-harvest not loaded
|
||||
pass
|
||||
|
||||
from ckantoolkit import config
|
||||
|
||||
|
|
Loading…
Reference in New Issue