Skip to content

Commit 7df118a

Browse files
committed
lint
1 parent 925726b commit 7df118a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

datadog_lambda/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_api_key() -> str:
7575
# Secrets manager endpoints: https://docs.aws.amazon.com/general/latest/gr/asm.html
7676
try:
7777
secrets_region = DD_API_KEY_SECRET_ARN.split(":")[3]
78-
except Exception as e:
78+
except Exception:
7979
logger.debug(
8080
"Invalid secret arn in DD_API_KEY_SECRET_ARN. Unable to get API key."
8181
)

tests/test_api.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def test_secrets_manager_fips_endpoint(self, mock_boto3_client):
2929
mock_boto3_client.return_value = mock_client
3030

3131
os.environ["AWS_REGION"] = "us-gov-east-1"
32-
os.environ["DD_API_KEY_SECRET_ARN"] = "arn:aws:secretsmanager:us-gov-east-1:1234567890:secret:key-name-123ABC"
32+
os.environ[
33+
"DD_API_KEY_SECRET_ARN"
34+
] = "arn:aws:secretsmanager:us-gov-east-1:1234567890:secret:key-name-123ABC"
3335

3436
api_key = api.get_api_key()
3537

0 commit comments

Comments
 (0)