This is an automated email from the ASF dual-hosted git repository. pierrejeambrun pushed a commit to branch v2-5-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 317046c0d7747acb01a40918268d78fd188e8d6b Author: Vladimir Mikhaylov <[email protected]> AuthorDate: Tue Mar 21 12:56:46 2023 +0000 Fix XCom.get_one exactly one exception text (#30183) (cherry picked from commit 18b91ca2592013b8118c83ab39741a30459af2aa) --- airflow/models/xcom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/models/xcom.py b/airflow/models/xcom.py index 831f05e6c9..2ae00d9a8a 100644 --- a/airflow/models/xcom.py +++ b/airflow/models/xcom.py @@ -365,7 +365,7 @@ class BaseXCom(Base, LoggingMixin): ) -> Any | None: """:sphinx-autoapi-skip:""" if not exactly_one(execution_date is not None, run_id is not None): - raise ValueError("Exactly one of ti_key, run_id, or execution_date must be passed") + raise ValueError("Exactly one of run_id or execution_date must be passed") if run_id: query = cls.get_many(
