From 8920cfa5d78ae26b1f82eb41f4973995f246840e Mon Sep 17 00:00:00 2001 From: David Koenitzer Date: Wed, 5 Jun 2024 10:10:44 -0400 Subject: [PATCH] Update dagintegritytestdefault.py --- airflow/include/dagintegritytestdefault.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airflow/include/dagintegritytestdefault.py b/airflow/include/dagintegritytestdefault.py index e433703be..b3f8ac78a 100644 --- a/airflow/include/dagintegritytestdefault.py +++ b/airflow/include/dagintegritytestdefault.py @@ -132,6 +132,8 @@ def test_file_imports(rel_path, rv): if os.path.exists(".astro/dag_integrity_exceptions.txt"): with open(".astro/dag_integrity_exceptions.txt", "r") as f: exceptions = f.readlines() + else: + exceptions = [] print(f"Exceptions: {exceptions}") if (rv != "No import errors") and rel_path not in exceptions: # If rv is not "No import errors," consider it a failed test