uranusjr commented on code in PR #51406:
URL: https://github.com/apache/airflow/pull/51406#discussion_r2141672632


##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -1141,11 +1141,16 @@ def process_parse_results(
         stat.import_errors = 1
     else:
         # record DAGs and import errors to database
+        import_errors = {}
+        if parsing_result.import_errors:
+            import_errors = {
+                (bundle_name, rel_path): error for rel_path, error in 
parsing_result.import_errors.items()
+            }

Review Comment:
   ```suggestion
           import_errors = {
               (bundle_name, rel_path): error for rel_path, error in 
parsing_result.import_errors.items()
           }
   ```



-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to