Skip to content

Commit

Permalink
return descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroroiz committed Aug 20, 2024
1 parent 4bd4daf commit 5b59fe3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions confidant_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ def get_service(self, service, decrypt_blind=False, metadata_only=False):
logging.debug('Service not found in confidant.')
ret['result'] = True
return ret
if response.status_code == 403:
logging.debug('Access denied to service in confidant.')
ret['result'] = False
ret = {**ret, **response.json()}
return ret
try:
data = response.json()
if decrypt_blind:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name="confidant-client",
version="2.5.2-alpha-1",
version="2.5.3",
packages=find_packages(exclude=["test*"]),
install_requires=[
# Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK)
Expand Down

0 comments on commit 5b59fe3

Please sign in to comment.