From 8d0234fcc5ff7ed1ae7695a17856c6af050065bd Mon Sep 17 00:00:00 2001 From: Viktor Seifert Date: Fri, 22 Jul 2022 15:02:54 +0200 Subject: [PATCH] RED-4653: Corrected exception creation --- pyinfra/storage/adapters/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinfra/storage/adapters/s3.py b/pyinfra/storage/adapters/s3.py index dab3ec8..3db0488 100644 --- a/pyinfra/storage/adapters/s3.py +++ b/pyinfra/storage/adapters/s3.py @@ -66,7 +66,7 @@ def _parse_endpoint(endpoint): parsed_url = urlparse(endpoint) return {"secure": parsed_url.scheme == "https", "endpoint": parsed_url.netloc} else: - raise f"The configured storage endpoint is not a valid url: {endpoint}" + raise Exception(f"The configured storage endpoint is not a valid url: {endpoint}") def get_s3_storage(config: Config):