Skip to content

Commit

Permalink
WIP: include exception type?
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Mar 30, 2024
1 parent d41ccbf commit 5cb7293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vault_oidc_ssh_cert_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def _issue_vault_token(
response = requests.post(login_url, data=payload, timeout=10)
response.raise_for_status()
except requests.exceptions.RequestException as request_error:
_set_error_message("Vault login error", str(request_error))
message = f"{type(request_error).__name__}: str(request_error)"
_set_error_message("Vault login error", message)
raise VoscaError from request_error

vault_token: str = response.json()["auth"]["client_token"]
Expand Down

0 comments on commit 5cb7293

Please sign in to comment.