This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 18b91ca259 Fix XCom.get_one exactly one exception text (#30183)
18b91ca259 is described below
commit 18b91ca2592013b8118c83ab39741a30459af2aa
Author: Vladimir Mikhaylov <[email protected]>
AuthorDate: Tue Mar 21 12:56:46 2023 +0000
Fix XCom.get_one exactly one exception text (#30183)
---
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 1ecd21f405..62e773c617 100644
--- a/airflow/models/xcom.py
+++ b/airflow/models/xcom.py
@@ -366,7 +366,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 = BaseXCom.get_many(