This is an automated email from the ASF dual-hosted git repository.

Lee-W 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 0a7967017a6 Replace AssertionError as ValueError in production code 
(#72763)
0a7967017a6 is described below

commit 0a7967017a6dfe37407b818477450de0f72abbbb
Author: Wei Lee <[email protected]>
AuthorDate: Fri Sep 11 11:37:34 2026 +0800

    Replace AssertionError as ValueError in production code (#72763)
---
 airflow-core/src/airflow/timetables/interval.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/timetables/interval.py 
b/airflow-core/src/airflow/timetables/interval.py
index d2e7289b517..ad8a562df91 100644
--- a/airflow-core/src/airflow/timetables/interval.py
+++ b/airflow-core/src/airflow/timetables/interval.py
@@ -173,7 +173,7 @@ class CronDataIntervalTimetable(CronMixin, 
_DataIntervalTimetable):
         elif next_start > current_time:  # Current time is between boundaries.
             new_start = self._get_prev(last_start)
         else:
-            raise AssertionError("next schedule shouldn't be earlier")
+            raise ValueError("next schedule shouldn't be earlier")
         if earliest is None:
             return new_start
         return max(new_start, self._align_to_next(earliest))

Reply via email to