Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions dtcli/utilities/cadcclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,13 @@ def _connect(
storage = StorageInventoryClient(cert, resource_id=storage_resource_id)
query = CadcTapClient(cert, resource_id=query_resource_id)
return cert, storage, query
# TODO: Handle invalid cert
except ValueError as error:
logger.error(error)
raise error
logger.error(
"Authorization failed: The provided CANFAR certificate is "
"invalid or expired. Please ensure you have a valid "
"certificate and try again."
)
raise ValueError("Invalid or expired CANFAR certificate.") from error


def get(
Expand Down
Loading