[AIRFLOW-109] Fix try catch handling in PrestoHook This addresses the issue with executing the SQL statement outside of the try block. In the case of a syntax error in the statement, the underlying library raises a Databases error which was meant to be handled (i.e., json parsed) by the catch.
Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/6f4696ba Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/6f4696ba Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/6f4696ba Branch: refs/heads/master Commit: 6f4696ba2ef18d74be8c18080b8ea7b9419608fb Parents: db07e04 d18a782 Author: Arthur Wiedmer <arthur.wied...@gmail.com> Authored: Mon May 16 14:12:12 2016 -0700 Committer: Arthur Wiedmer <arthur.wied...@gmail.com> Committed: Mon May 16 14:12:12 2016 -0700 ---------------------------------------------------------------------- airflow/hooks/presto_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ----------------------------------------------------------------------