From 4b0c5ca09dfb1f7b30bb5576e73b9de5bc3d3e82 Mon Sep 17 00:00:00 2001 From: Mattabyte Date: Fri, 31 Jan 2025 16:37:19 +1000 Subject: [PATCH] Fixed incorrect Schemes reference in AWS node --- nodes/secure_api_call_aws.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/secure_api_call_aws.py b/nodes/secure_api_call_aws.py index 7c8fd94..9cdfd03 100644 --- a/nodes/secure_api_call_aws.py +++ b/nodes/secure_api_call_aws.py @@ -17,8 +17,8 @@ class SecureApiCallAws: def validate_url(url: str) -> Optional[str]: try: parsed = urllib.parse.urlparse(url) - if parsed.scheme not in SecureApiCall.ALLOWED_SCHEMES: - return f"URL scheme must be one of: {', '.join(SecureApiCall.ALLOWED_SCHEMES)}" + if parsed.scheme not in SecureApiCallAws.ALLOWED_SCHEMES: + return f"URL scheme must be one of: {', '.join(SecureApiCallAws.ALLOWED_SCHEMES)}" return None except Exception: return "Invalid URL format"