From ba15a8a4fe14c4a67fb4f8d550729fa3b42d4b39 Mon Sep 17 00:00:00 2001 From: Alex <94073946+Alex-NRCan@users.noreply.github.com> Date: Sun, 20 Nov 2022 19:19:33 -0500 Subject: [PATCH] Fixes a "TypeError: argument of type 'NoneType' is not iterable" when self.options is None (#1037) --- pygeoapi/provider/rasterio_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/provider/rasterio_.py b/pygeoapi/provider/rasterio_.py index 9c12b96..475481e 100644 --- a/pygeoapi/provider/rasterio_.py +++ b/pygeoapi/provider/rasterio_.py @@ -202,7 +202,7 @@ class RasterioProvider(BaseProvider): crs_src = CRS.from_epsg(bbox_crs) - if 'crs' in self.options: + if self.options and 'crs' in self.options: crs_dest = CRS.from_string(self.options['crs']) else: crs_dest = self._data.crs