Skip to content

Commit 51d9d5d

Browse files
LorisFriedelclaude
andcommitted
fix(forwarder): fix black formatting for API key validation error message
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b5f37f1 commit 51d9d5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

aws/logs_monitoring/settings.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,8 @@ def is_api_key_valid():
243243
# Check if the API key is the correct number of characters
244244
if len(DD_API_KEY) != 32:
245245
raise Exception(
246-
f"""
247-
Invalid Datadog API key format. Expected 32 characters, received {len(DD_API_KEY)}.
248-
Verify your API key at https://app.{DD_SITE}/organization-settings/api-keys
249-
"""
246+
f"Invalid Datadog API key format. Expected 32 characters, received {len(DD_API_KEY)}. "
247+
f"Verify your API key at https://app.{DD_SITE}/organization-settings/api-keys"
250248
)
251249

252250
# Validate the API key

0 commit comments

Comments
 (0)