[AIRFLOW-817] Check for None value of execution_date in endpoint execution_date can be present in json while resolving to None.
Closes #2034 from bolkedebruin/AIRFLOW-817 Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/2b13109f Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/2b13109f Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/2b13109f Branch: refs/heads/v1-8-test Commit: 2b13109ff01ee1534d611665d974667a06787cb2 Parents: 4b6c389 Author: Bolke de Bruin <bo...@xs4all.nl> Authored: Tue Jan 31 18:54:05 2017 +0000 Committer: Bolke de Bruin <bo...@xs4all.nl> Committed: Tue Jan 31 18:54:05 2017 +0000 ---------------------------------------------------------------------- airflow/www/api/experimental/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/2b13109f/airflow/www/api/experimental/endpoints.py ---------------------------------------------------------------------- diff --git a/airflow/www/api/experimental/endpoints.py b/airflow/www/api/experimental/endpoints.py index 9b248c1..56b9d79 100644 --- a/airflow/www/api/experimental/endpoints.py +++ b/airflow/www/api/experimental/endpoints.py @@ -50,7 +50,7 @@ def trigger_dag(dag_id): conf = data['conf'] execution_date = None - if 'execution_date' in data: + if 'execution_date' in data and data['execution_date'] is not None: execution_date = data['execution_date'] # Convert string datetime into actual datetime