[ 
https://issues.apache.org/jira/browse/AIRFLOW-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15842547#comment-15842547
 ] 

ASF subversion and git services commented on AIRFLOW-806:
---------------------------------------------------------

Commit bf89810957d10ea7aeb3855fdfb54760013d9fc2 in incubator-airflow's branch 
refs/heads/v1-8-test from [~dxhuang]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=bf89810 ]

[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 <bo...@xs4all.nl>


> UI should properly ignore DAG doc when it is None
> -------------------------------------------------
>
>                 Key: AIRFLOW-806
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-806
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: ui
>    Affects Versions: Airflow 1.7.1.3
>            Reporter: Daniel Huang
>            Assignee: Daniel Huang
>            Priority: Trivial
>
> If {{dag.doc_md = __doc__}}, but there are no docstrings on the file, the 
> Graph view will error with:
> {code}
> AttributeError: 'NoneType' object has no attribute 'strip'
> {code}
> The UI should just assume we have no docs to show for the DAG. I suspect user 
> in AIRFLOW-625 ran into this error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to