From e4b13a2dd6bdb32a089b4df7ecdbed6d4aee37c8 Mon Sep 17 00:00:00 2001 From: Motoi Washida Date: Tue, 21 Jan 2025 22:59:14 +0900 Subject: [PATCH] Fixes #7272: Error in rehash DB migration with Elasticsearch queries --- redash/query_runner/elasticsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/query_runner/elasticsearch.py b/redash/query_runner/elasticsearch.py index 3eab57dc0f..b3cc560bbc 100644 --- a/redash/query_runner/elasticsearch.py +++ b/redash/query_runner/elasticsearch.py @@ -92,7 +92,7 @@ def __init__(self, configuration): logger.setLevel(logging.DEBUG) self.server_url = self.configuration.get("server", "") - if self.server_url[-1] == "/": + if self.server_url and self.server_url[-1] == "/": self.server_url = self.server_url[:-1] basic_auth_user = self.configuration.get("basic_auth_user", None)