uranusjr commented on code in PR #56066:
URL: https://github.com/apache/airflow/pull/56066#discussion_r2674716202
##########
airflow-core/src/airflow/cli/commands/dag_command.py:
##########
@@ -474,11 +474,13 @@ def dag_list_import_errors(args, session: Session =
NEW_SESSION) -> None:
if bundle.name in bundles_to_search:
dagbag = DagBag(bundle.path, bundle_path=bundle.path,
bundle_name=bundle.name)
for filename, errors in dagbag.import_errors.items():
- data.append({"bundle_name": bundle.name, "filepath":
filename, "error": errors})
+ for err in errors:
+ data.append({"bundle_name": bundle.name,
"filepath": filename, "error": err})
Review Comment:
```python
data.extend({"bundle_name": bundle.name, "filepath": filename, "error": err}
for err in errors)
```
Same for the change right below.
--
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]