From 0d2de03cd6e66eb8f5b16e470a27eb0205b50cba Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Tue, 8 Oct 2024 09:48:43 +0100 Subject: [PATCH] handle exception --- pygeoapi/flask_app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pygeoapi/flask_app.py b/pygeoapi/flask_app.py index 2ac6c5e..99e4143 100644 --- a/pygeoapi/flask_app.py +++ b/pygeoapi/flask_app.py @@ -247,6 +247,9 @@ def generate(): skip_valid_check=True) yield browser_response.data + except PermissionError as ex: + raise ex + except Exception as ex: yield error_screen(ex).data @@ -360,6 +363,7 @@ def collections(collection_id=None): :returns: HTTP response """ + handle_client("/collections") return get_response(api_.describe_collections(request, collection_id)) @@ -418,6 +422,9 @@ def collection_items(collection_id, item_id=None): :returns: HTTP response """ + + handle_client(f"/collections/{collection_id}/items") + collection_id = 'speckle' if item_id is None: