eladkal commented on a change in pull request #18471:
URL: https://github.com/apache/airflow/pull/18471#discussion_r715621156
##########
File path: airflow/operators/python.py
##########
@@ -178,6 +178,8 @@ class BranchPythonOperator(PythonOperator, SkipMixin):
def execute(self, context: Dict):
branch = super().execute(context)
+ if branch is None:
+ raise AirflowException("Branch callable must return at least one
task_id to follow")
Review comment:
yeah this is something I had in mind - added it in last commit
In general this is something we should have in skipmixin as it's logic
shared by all branch operators.
--
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]