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


##########
airflow/models/xcom.py:
##########
@@ -339,6 +343,9 @@ def get_many(
         """
         from airflow.models.dagrun import DagRun
 
+        if key is not None and len(key) < 1:
+            raise ValueError(f"XCom key must be a non-empty string. Received: 
{key!r}")

Review Comment:
   ```suggestion
           if key is not None and not key:
               raise ValueError(f"XCom key must be a non-empty string. 
Received: {key!r}")
   ```



-- 
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]

Reply via email to