From cc80d09a48d21c3e815246231daeb7ea5109eba9 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Wed, 21 Aug 2024 15:11:15 +0200 Subject: [PATCH] fix --- .../core/collection_search/collection_search.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py b/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py index f7f452c9..2a5f7cf4 100644 --- a/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py +++ b/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py @@ -95,11 +95,11 @@ def from_extensions( conf = supported_extensions.get(ext.__class__.__name__, None) if not conf: warnings.warn( - f"Conformance class for `{ext.__class__.__name__}` extension not found.", + f"Conformance class for `{ext.__class__.__name__}` extension not found.", # noqa: E501 UserWarning, ) else: - conformance_classes.append(supported_extension[ext.__class__.__name__]) + conformance_classes.append(conf) get_request_model = create_request_model( model_name="CollectionsGetRequest", @@ -203,11 +203,11 @@ def from_extensions( conf = supported_extensions.get(ext.__class__.__name__, None) if not conf: warnings.warn( - f"Conformance class for `{ext.__class__.__name__}` extension not found.", + f"Conformance class for `{ext.__class__.__name__}` extension not found.", # noqa: E501 UserWarning, ) else: - conformance_classes.append(supported_extension[ext.__class__.__name__]) + conformance_classes.append(conf) get_request_model = create_request_model( model_name="CollectionsGetRequest",