Skip to content

Commit

Permalink
Make expand() error vague so it's not misleading (#24018)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Jun 2, 2022
1 parent 9398586 commit 1394b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/models/mappedoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _expand(self, **mapped_kwargs: "Mappable") -> "MappedOperator":
from airflow.operators.empty import EmptyOperator

validate_mapping_kwargs(self.operator_class, "expand", mapped_kwargs)
prevent_duplicates(self.kwargs, mapped_kwargs, fail_reason="mapping already partial")
prevent_duplicates(self.kwargs, mapped_kwargs, fail_reason="unmappable or already specified")
ensure_xcomarg_return_value(mapped_kwargs)

partial_kwargs = self.kwargs.copy()
Expand Down

0 comments on commit 1394b1a

Please sign in to comment.