You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/13 07:20:04 UTC

[GitHub] [airflow] andyfcx commented on a change in pull request #22218: Do not use native obj Jinja2 env to render error emails

andyfcx commented on a change in pull request #22218:
URL: https://github.com/apache/airflow/pull/22218#discussion_r825399819



##########
File path: airflow/models/abstractoperator.py
##########
@@ -115,7 +115,7 @@ def get_template_env(self) -> "jinja2.Environment":
 
         dag = self.get_dag()
         if dag:
-            return dag.get_template_env()
+            return dag.get_template_env(force_string=True)

Review comment:
       Default as False




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org