Skip to content

Commit

Permalink
sql_lab: re-raise exception in get_sql_results (#3111)
Browse files Browse the repository at this point in the history
As caller expect it to raise an exception instead of returning
None.

Refs #3075
  • Loading branch information
xrmx authored and mistercrunch committed Aug 2, 2017
1 parent 62fcdf2 commit 90592d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def get_sql_results(
query.status = QueryStatus.FAILED
query.tmp_table_name = None
sesh.commit()
raise


def execute_sql(ctask, query_id, return_results=True, store_results=False):
Expand Down

0 comments on commit 90592d3

Please sign in to comment.