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:47:52 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/master f8d8ddac0 -> 6060f653a


[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


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

Branch: refs/heads/master
Commit: 6060f653a1720a6255893ec7067d7e6eda1bffaf
Parents: f8d8dda
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:47:38 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/6060f653/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