fix various deprecation warnings (#1761)

This commit is contained in:
Tom Kralidis
2024-07-25 14:13:20 -04:00
committed by GitHub
parent b712cb2695
commit 0a7bb7f5f4
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ from http import HTTPStatus
import logging
from typing import Tuple
from shapely.errors import WKTReadingError
from shapely.errors import ShapelyError
from shapely.wkt import loads as shapely_loads
from pygeoapi.plugin import load_plugin, PLUGINS
@@ -124,7 +124,7 @@ def get_collection_edr_query(api: API, request: APIRequest,
if wkt:
try:
wkt = shapely_loads(wkt)
except WKTReadingError:
except ShapelyError:
msg = 'invalid coords parameter'
return api.get_exception(
HTTPStatus.BAD_REQUEST, headers, request.format,