RED-4653: Corrected exception creation

This commit is contained in:
Viktor Seifert 2022-07-22 15:02:54 +02:00
parent 098a62335b
commit 8d0234fcc5

View File

@ -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):