Skip to content

Commit

Permalink
Handle InterruptException in Athena query runnner like in the Presto …
Browse files Browse the repository at this point in the history
…query runner. (#3403)
  • Loading branch information
jezdez authored and arikfr committed Feb 10, 2019
1 parent df4ca86 commit 23908ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def run_query(self, query, user):
}
json_data = json_dumps(data, ignore_nan=True)
error = None
except KeyboardInterrupt:
except (KeyboardInterrupt, InterruptException):
if cursor.query_id:
cursor.cancel()
error = "Query cancelled by user."
Expand Down

0 comments on commit 23908ed

Please sign in to comment.