Roundup Tracker - Issues

Message7199

Author ced
Recipients ced
Date 2021-04-16.07:29:12
Message-id <1618558152.49.0.321760854412.issue2551129@roundup.psfhosted.org>
In-reply-to
We got frequently this exception:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/roundup/cgi/client.py", line 719, in inner_main
    self.write_html(self.renderContext())
  File "/usr/lib/python3.8/site-packages/roundup/cgi/client.py", line 1866, in renderContext
    tplname = self.selectTemplate(self.classname, self.template)
  File "/usr/lib/python3.8/site-packages/roundup/cgi/client.py", line 1859, in selectTemplate
    raise templating.NoTemplate('No template file exists for templating '
roundup.cgi.templating.NoTemplate: No template file exists for templating "issue" with template "calendar" (neither "issue.calendar" nor "_generic.calendar")


I think it is due to crawling bot but they keep trying because roundup return a status 500.
I think the NoTemplate exception should be catch in renderContext also when calling selectTemplate, here is a patch that does that.
History
Date User Action Args
2021-04-16 07:29:12cedsetrecipients: + ced
2021-04-16 07:29:12cedsetmessageid: <1618558152.49.0.321760854412.issue2551129@roundup.psfhosted.org>
2021-04-16 07:29:12cedlinkissue2551129 messages
2021-04-16 07:29:12cedcreate