Don't require ckanext-harvest, fixes #302

This commit is contained in:
amercader 2022-12-19 16:19:21 +01:00
parent 53d7a18519
commit 5536382b59
1 changed files with 8 additions and 4 deletions

View File

@ -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