From 067b1587b91d47108efc1d7efbc26faba389561e Mon Sep 17 00:00:00 2001 From: Benjamin Webb <40066515+webb-ben@users.noreply.github.com> Date: Tue, 20 Aug 2024 02:42:11 -0800 Subject: [PATCH] Skip resources with no providers in STA intralink (#1793) --- pygeoapi/provider/sensorthings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pygeoapi/provider/sensorthings.py b/pygeoapi/provider/sensorthings.py index c528187..b888a60 100644 --- a/pygeoapi/provider/sensorthings.py +++ b/pygeoapi/provider/sensorthings.py @@ -119,6 +119,11 @@ class SensorThingsProvider(BaseProvider): for (name, rs) in CONFIG['resources'].items(): pvs = rs.get('providers') + + if pvs is None: + LOGGER.debug(f'Skipping collection: {name}') + continue + p = get_provider_default(pvs) e = p.get('entity') or self._get_entity(p['data']) if any([