Skip to content

Commit

Permalink
Catching exceptions for listing empty secret folders
Browse files Browse the repository at this point in the history
  • Loading branch information
tdviet committed Nov 14, 2023
1 parent c14ea4d commit 64b66f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedcloudclient/secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 64b66f9

Please sign in to comment.