Repository: incubator-airflow Updated Branches: refs/heads/master cac133001 -> 0be87d5c4
[AIRFLOW-704][AIRFLOW-1] Fix invalid syntax in BQ hook Closes #1947 from criccomini/AIRFLOW-704 Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/0be87d5c Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/0be87d5c Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/0be87d5c Branch: refs/heads/master Commit: 0be87d5c4898770ecf5891cbcde91a0fc18ef641 Parents: cac1330 Author: Chris Riccomini <[email protected]> Authored: Fri Dec 16 08:47:15 2016 -0800 Committer: Chris Riccomini <[email protected]> Committed: Fri Dec 16 08:47:15 2016 -0800 ---------------------------------------------------------------------- airflow/contrib/hooks/bigquery_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/0be87d5c/airflow/contrib/hooks/bigquery_hook.py ---------------------------------------------------------------------- diff --git a/airflow/contrib/hooks/bigquery_hook.py b/airflow/contrib/hooks/bigquery_hook.py index 900ec12..1a33a0a 100644 --- a/airflow/contrib/hooks/bigquery_hook.py +++ b/airflow/contrib/hooks/bigquery_hook.py @@ -489,7 +489,7 @@ class BigQueryBaseCursor(object): logging.info('Waiting for job to complete : %s, %s', self.project_id, job_id) time.sleep(5) - except HttpError, err: + except HttpError as err: if err.code in [500, 503]: logging.info('%s: Retryable error, waiting for job to complete: %s', err.code, job_id) time.sleep(5)
