Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
LuHG18 committed Jan 1, 2024
2 parents 6dc4cd1 + d21dbf6 commit 7db6f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def init_firebase():
client = boto3.client("secretsmanager", region_name=region_name)
try:
get_secret_value_response = client.get_secret_value(SecretId=secret_name)
# For a list of exceptions thrown, see
# https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
except ClientError as e:
if 'UnrecognizedClientException' in str(e.response['Error']['Code']):
raise Exception("AWS authentification incomplete. Make sure all credentials are set correctly including `export AWS_PROFILE=<profile-name>`")
# For a list of exceptions thrown, see
# https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
raise e

# Decrypts secret using the associated KMS key.
Expand Down

0 comments on commit 7db6f07

Please sign in to comment.