From 9a6a9bf0f5478426073647c6a927eec2a13d5ba5 Mon Sep 17 00:00:00 2001 From: Jeff Stafford Date: Sun, 7 Dec 2025 12:01:40 -0800 Subject: [PATCH] [v3-1-test] Prevent dag processor crash on encountering excel files in the DAG directory (#59069) (cherry picked from commit 5c41f2ee2937c6992781970f92a7570190ec1653) Co-authored-by: Jeff Stafford --- airflow-core/src/airflow/dag_processing/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow-core/src/airflow/dag_processing/manager.py b/airflow-core/src/airflow/dag_processing/manager.py index c774aa29fc65d..2a37a1bbf6fa5 100644 --- a/airflow-core/src/airflow/dag_processing/manager.py +++ b/airflow-core/src/airflow/dag_processing/manager.py @@ -624,7 +624,7 @@ def find_zipped_dags(abs_path: os.PathLike) -> Iterator[str]: if might_contain_dag(info.filename, True, z): yield os.path.join(abs_path, info.filename) except zipfile.BadZipFile: - self.log.exception("There was an error accessing ZIP file %s %s", abs_path) + self.log.exception("There was an error accessing ZIP file %s", abs_path) rel_filelocs: list[str] = [] for info in present: