From 8f103cbb0cc22a77000e7d1595055a38b2aa6166 Mon Sep 17 00:00:00 2001 From: Stelios Voutsinas Date: Tue, 24 Sep 2024 11:59:31 -0700 Subject: [PATCH] Bugfix for label error message not showing the actual label --- src/vosiav2/handlers/external.py | 2 +- src/vosiav2/services/config_reader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vosiav2/handlers/external.py b/src/vosiav2/handlers/external.py index 326d1e8..eea1b45 100644 --- a/src/vosiav2/handlers/external.py +++ b/src/vosiav2/handlers/external.py @@ -191,7 +191,7 @@ def query( logger: Annotated[BoundLogger, Depends(logger_dependency)], delegated_token: Annotated[ str | None, Depends(optional_auth_delegated_token_dependency) - ] = None, + ], ) -> Response: """Endpoint used to query the SIAv2 service using various parameters defined in the SIAv2 spec. The response is an XML VOTable file diff --git a/src/vosiav2/services/config_reader.py b/src/vosiav2/services/config_reader.py index d404dbc..5010c5b 100644 --- a/src/vosiav2/services/config_reader.py +++ b/src/vosiav2/services/config_reader.py @@ -70,7 +70,7 @@ def get_data_collection(label: str | None, config: Config) -> DataCollection: return collection raise UsageFaultError( - detail="Label {label} not found in Data collections." + detail=f"Label {label} not found in Data collections." )