potiuk commented on code in PR #25509:
URL: https://github.com/apache/airflow/pull/25509#discussion_r938725489


##########
airflow/models/dag.py:
##########
@@ -543,8 +543,13 @@ def get_doc_md(self, doc_md: str) -> str:
         if not doc_md.endswith('.md'):
             template = jinja2.Template(doc_md)
         else:
-            # template = env.loader.get_source(env, doc_md)[0]
-            template = env.get_template(doc_md)
+            try:

Review Comment:
   And it's perfectly OK to simply display the error as the documentation :)



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to