Skip to content

Commit

Permalink
Fix error in rehash DB migration with Elasticsearch queries (#7292)
Browse files Browse the repository at this point in the history
Fixes #7272
  • Loading branch information
wm3 authored Jan 23, 2025
1 parent 8c58904 commit d03a2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d03a2c4

Please sign in to comment.