Internal Server Error

The server has either erred or is incapable of performing the requested operation.

Traceback (most recent call last):
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/abc1bb91493545df/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
    rv = self.handle_exception(request, response, e)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/abc1bb91493545df/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__
    rv = self.router.dispatch(request, response)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/abc1bb91493545df/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/abc1bb91493545df/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__
    return handler.dispatch()
  File "/base/data/home/apps/s~courageous-bakery/20231120.456475479859561061/OrderProcessing.py", line 220, in dispatch
    webapp2.RequestHandler.dispatch(self)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/abc1bb91493545df/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/abc1bb91493545df/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
  File "/base/data/home/apps/s~courageous-bakery/20231120.456475479859561061/OrderProcessing.py", line 1208, in get
    write_template_j(self, "delivery-info.html", template_values, t0=t0)
  File "/base/data/home/apps/s~courageous-bakery/20231120.456475479859561061/OrderProcessing.py", line 142, in write_template_j
    self.response.write(template.render(template_values))
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/abc1bb91493545df/python27/python27_lib/versions/third_party/jinja2-2.6/jinja2/environment.py", line 894, in render
    return self.environment.handle_exception(exc_info, True)
  File "/base/data/home/apps/s~courageous-bakery/20231120.456475479859561061/templates/delivery-info.html", line 346, in top-level template code
    {%for m in allMessages %}{ "message": "{{m.Message_to_show|renderBBCode}}", "showFor":"{{m.Show_for}}", "itemsIn":"{{m.Show_if_item_added_in}}", "pickUpOrDelivery": "{{m.Show_for}}", "startDate": new Date("{{m.Start_Date.strftime("%m/%d/%Y")}}"), "endDate": new Date("{{m.End_Date.strftime("%m/%d/%Y")}}") }, {%endfor%}
TypeError: 'NoneType' object is not iterable