Skip to content

Commit

Permalink
Fix docs building for workday example. (#30664)
Browse files Browse the repository at this point in the history
The #30660 was merged to quickly as it results in doc building
failure. This PR fixes it.
  • Loading branch information
potiuk committed Apr 15, 2023
1 parent 0f107be commit 18e5612
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/example_dags/plugins/workday.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@
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):
Expand Down

0 comments on commit 18e5612

Please sign in to comment.