Skip to content

Commit

Permalink
Bugfix for label error message not showing the actual label
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Sep 24, 2024
1 parent ffbbdf5 commit 8f103cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vosiav2/handlers/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/vosiav2/services/config_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)


Expand Down

0 comments on commit 8f103cb

Please sign in to comment.