Skip to content

Commit

Permalink
Fix #444: unicode characters in username fail query execution
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jun 5, 2015
1 parent b56e87c commit c3deb8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redash/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ def execute_query(self, query, data_source_id, metadata):
metadata['Query Hash'] = query_hash
metadata['Queue'] = self.request.delivery_info['routing_key']

annotation = ", ".join(["{}: {}".format(k, v) for k, v in metadata.iteritems()])
annotation = u", ".join([u"{}: {}".format(k, v) for k, v in metadata.iteritems()])

logging.debug("Annotation: %s", annotation)
logging.debug(u"Annotation: %s", annotation)

annotated_query = u"/* {} */ {}".format(annotation, query)
else:
Expand Down

0 comments on commit c3deb8e

Please sign in to comment.