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

ephraimanierobi pushed a commit to branch v2-6-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 368f64e87a56a0ce58a43396539a2c17c1637b82
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Apr 15 21:34:42 2023 +0200

    Fix docs building for workday example. (#30664)
    
    The #30660 was merged to quickly as it results in doc building
    failure. This PR fixes it.
    
    (cherry picked from commit 18e56129478b6a2f22b764c0b3cebf59627cd026)
---
 airflow/example_dags/plugins/workday.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/airflow/example_dags/plugins/workday.py 
b/airflow/example_dags/plugins/workday.py
index 5dc3f2bc50..20363a69e7 100644
--- a/airflow/example_dags/plugins/workday.py
+++ b/airflow/example_dags/plugins/workday.py
@@ -28,14 +28,13 @@ from airflow.plugins_manager import AirflowPlugin
 from airflow.timetables.base import DagRunInfo, DataInterval, TimeRestriction, 
Timetable
 
 log = logging.getLogger(__name__)
-holiday_calendar = None
-
 try:
     from pandas.tseries.holiday import USFederalHolidayCalendar
 
     holiday_calendar = USFederalHolidayCalendar()
 except ImportError:
     log.warning("Could not import pandas. Holidays will not be considered.")
+    holiday_calendar = None
 
 
 class AfterWorkdayTimetable(Timetable):

Reply via email to