Making me crazy!

I have an automation that runs, but I wanted to remove the conditions for testing, so I created a new automation without the conditions and it fails. I even tried just copying the original automation (except for the id) and modifying it, and it fails. Below are the two automations and the error I get (plus the script that it calls). Any help for this?

- id: '1733155751081'
  alias: Log back temp
  description: ''
  triggers:
  - trigger: time_pattern
    minutes: 0
  actions:
  - condition: time
    after: 01:00
    before: 06:00
  - action: script.therm_report
    data:
      therm_name: climate.back_thermostat
  mode: single

- id: '1734452945015'
  alias: test Log back temp
  description: ''
  triggers:
  - trigger: event
    event_type: ''
  actions:
  - action: script.therm_report
    data:
      therm_name: climate.back_thermostat
  mode: single

therm_report:
  alias: therm report
  variables:
    temp: '{{ state_attr(therm_name,''current_temperature'')  }}'
    back_state: '{{ state_attr(therm_name,''state'')  }}'
    front_setpoint: '{{ state_attr(climate.front_thermostat,''temperature'')  }}'
  fields:
    therm_name:
      description: which thermostat to use
      example: climate.front_thermostat
  sequence:
  - action: logbook.log
    data:
      name: Log Temp
      message: Current temperature is {{ temp }}
  description: report temp of back thermostat
  icon: mdi:air-conditioner

Never mind, the error was in the called script. Bad error reporting though.