From 64b66f9fb64a6757ecba13a8f88985626854b2b8 Mon Sep 17 00:00:00 2001 From: tdviet Date: Tue, 14 Nov 2023 09:26:16 +0100 Subject: [PATCH] Catching exceptions for listing empty secret folders --- fedcloudclient/secret.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedcloudclient/secret.py b/fedcloudclient/secret.py index b16e9a1..88d61c9 100644 --- a/fedcloudclient/secret.py +++ b/fedcloudclient/secret.py @@ -176,7 +176,7 @@ def list_( except Exception as e: message = str(e) if "HTTPError: 404" in message: - print(f"The target path is empty or does not exist.", file=sys.stderr) + print(f"No secrets found", file=sys.stderr) else: print(f"An unexpected error occurred: {str(e)}", file=sys.stderr)