anitakar commented on a change in pull request #7472: [AIRFLOW-6850] Handle no 
access to code in UI
URL: https://github.com/apache/airflow/pull/7472#discussion_r381951456
 
 

 ##########
 File path: airflow/www/templates/airflow/dag_code.html
 ##########
 @@ -31,7 +31,7 @@ <h4>{{ title }}</h4>
 {% endblock %}
 
 {% block tail %}
-    {{ super() }}
+    {{ super() if dag else '' }}
 
 Review comment:
   Otherwise dag page rendering fails on accessing dag attributes when dag is 
None.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to