Skip to content

Commit c59770e

Browse files
author
=
committed
style: use single quotes in error messages
1 parent c48d80a commit c59770e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp_proxy_for_aws/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def validate_endpoint_url(endpoint: str, allow_localhost_http: bool = True) -> N
4545
if not parsed.scheme:
4646
raise ValueError(
4747
f"Invalid endpoint URL '{endpoint}': missing URL scheme. "
48-
"Use https:// prefix for secure connections."
48+
'Use https:// prefix for secure connections.'
4949
)
5050

5151
if parsed.scheme == 'https':
@@ -56,13 +56,13 @@ def validate_endpoint_url(endpoint: str, allow_localhost_http: bool = True) -> N
5656
return # Allow HTTP for local development
5757
raise ValueError(
5858
f"Invalid endpoint URL '{endpoint}': HTTP is not allowed for remote endpoints. "
59-
"AWS credentials must be transmitted over HTTPS to prevent interception. "
60-
"Use https:// instead."
59+
'AWS credentials must be transmitted over HTTPS to prevent interception. '
60+
'Use https:// instead.'
6161
)
6262

6363
raise ValueError(
6464
f"Invalid endpoint URL '{endpoint}': unsupported scheme '{parsed.scheme}'. "
65-
"Only HTTPS is supported for secure credential transmission."
65+
'Only HTTPS is supported for secure credential transmission.'
6666
)
6767

6868

0 commit comments

Comments
 (0)