Holiday lighting automation script issue

I’m new to home assistant and trying to get a script working. I found a script on here that works for the holidays, but if the date range is not falling into that I get an error saying scene warm white not found in scene list. Odd part is I’ve tried creating a scene with that name and it still complains about the same thing but all of the holiday settings work.

alias: Lighting - Outside lights on at sunset
description: Turn on front and back porch lights at sunset.
trigger:
  - platform: sun
    event: sunset
    offset: 0
condition: []
action:
  - service: light.turn_on
    metadata: {}
    data:
      effect: |
        {% set today = (now().month, now().day) %} 
        {% set holidays = {
          (10,1) <= today <= (10,31): 'Halloween',
          (12,1) <= today <= (12,25): 'Christmas' } %}
         {% if today in holidays.keys() %}
           {{ holidays[today] }}
         {% elif true in holidays.keys() %}
           {{ holidays.get(true) }}
         {% else %}
           warm white
         {% endif %}
    target:
      area_id:
        - front_porch
        - back_porch
mode: single