message: [hotfix/sqllab] setting up the connection in the try: block
diff: @@ -120,11 +120,11 @@ def get_sql_results(self, query_id, return_results=True, store_results=False):
  session.commit()
  logging.info("Set query to 'running'")
  + try:
  engine = database.get_sqla_engine(schema=query.schema)
  conn = engine.raw_connection()
  cursor = conn.cursor()
  logging.info("Running query: \n{}".format(executed_sql))
  - try:
  logging.info(query.executed_sql)
  cursor.execute(
  query.executed_sql, **db_engine_spec.cursor_execute_kwargs)
  