diff --git a/ckanext/spatial/util.py b/ckanext/spatial/util.py index 3aef130..1f32633 100644 --- a/ckanext/spatial/util.py +++ b/ckanext/spatial/util.py @@ -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