airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-806] UI should properly ignore DAG doc when it is None
Date Fri, 27 Jan 2017 10:48:06 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/v1-8-test 1060ade28 -> bf8981095


[AIRFLOW-806] UI should properly ignore DAG doc when it is None

Check dag.doc_md before we try to convert it to
Markdown.

Closes #2020 from dhuang/AIRFLOW-806

(cherry picked from commit 6060f653a1720a6255893ec7067d7e6eda1bffaf)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/bf898109
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/bf898109
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/bf898109

Branch: refs/heads/v1-8-test
Commit: bf89810957d10ea7aeb3855fdfb54760013d9fc2
Parents: 1060ade
Author: Daniel Huang <daniel.huang@upsight.com>
Authored: Fri Jan 27 11:47:35 2017 +0100
Committer: Bolke de Bruin <bolke@xs4all.nl>
Committed: Fri Jan 27 11:48:00 2017 +0100

----------------------------------------------------------------------
 airflow/www/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/bf898109/airflow/www/views.py
----------------------------------------------------------------------
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 800275a..86d74d4 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1414,7 +1414,7 @@ class Airflow(BaseView):
             flash("No tasks found", "error")
         session.commit()
         session.close()
-        doc_md = markdown.markdown(dag.doc_md) if hasattr(dag, 'doc_md') else ''
+        doc_md = markdown.markdown(dag.doc_md) if hasattr(dag, 'doc_md') and dag.doc_md else
''
 
         return self.render(
             'airflow/graph.html',


Mime
View raw message