RED-4653: Added a descriptive error message when the storage endpoint is nor a correct url

This commit is contained in:
Viktor Seifert 2022-07-22 14:42:22 +02:00
parent 379685f964
commit 098a62335b

View File

@ -65,6 +65,8 @@ def _parse_endpoint(endpoint):
if url(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}"
def get_s3_storage(config: Config):