Skip to content

Commit

Permalink
Deal with missing/empty configuration parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakdaw committed Oct 29, 2019
1 parent 0050ac4 commit 8b7f635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redash/query_runner/druid.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def run_query(self, query, user):
connection = connect(host=self.configuration['host'],
port=self.configuration['port'],
path='/druid/v2/sql/',
scheme=self.configuration['scheme'],
user=self.configuration['user'],
password=self.configuration['password'])
scheme=(self.configuration.get('scheme') or 'http'),
user=(self.configuration.get('user') or None),
password=(self.configuration.get('password') or None))

cursor = connection.cursor()

Expand Down

0 comments on commit 8b7f635

Please sign in to comment.