What is causing workflows to fail at the Python step?

import pendulum

def handler(pd):
  now = pendulum.now("Asia/Calcutta")

  if now.hour>=20:
    date= pendulum.tomorrow("Asia/Calcutta")
    sdate= [date.at](http://date.at)(20)
    edate= [date.at](http://date.at)(21)
  else:
    sdate=[now.at](http://now.at)(20)
    edate=[now.at](http://now.at)(21)

  return {"sdate": sdate.to_iso8601_string(), "edate":edate.to_iso8601_string()}