Skip to content

Commit

Permalink
Add missing error check
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlwgriffiths committed Nov 24, 2016
1 parent 8ad336a commit c449bfb
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 @@ -369,7 +369,7 @@ def run_query(self, query, user):
url = "{0}/{1}/_search".format(self.server_url, index_name)
mapping_url = "{0}/{1}/_mapping".format(self.server_url, index_name)

mappings = self._get_mappings(mapping_url)
mappings, error = self._get_mappings(mapping_url)
if error:
return None, error

Expand Down

0 comments on commit c449bfb

Please sign in to comment.