From 373df092e9580d866f95e1ad466d9d763cc8f2fc Mon Sep 17 00:00:00 2001 From: delinea-rajani <164006534+delinea-rajani@users.noreply.github.com> Date: Tue, 2 Jul 2024 02:54:05 -0500 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ddcabd5..1ee752d 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,17 @@ serverSecret = ServerSecret(**secret) print(f"username: {serverSecret.fields['username'].value}\npassword: {serverSecret.fields['password'].value}") ``` +> Note: Add a try-except block to the code to get more detailed error messages. + +```python +from delinea.secrets.server import SecretServerError + +try: + # code... +except SecretServerError as e: + print(e.message) +``` + > Note: The `path` must be the full folder path and name of the secret. ## Using Self-Signed Certificates