[issue2551129] Template not found return 500

Cédric Krier <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from Cédric Krier:

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.

----------
components: Web interface
files: roundup-template-notfound.patch
keywords: patch
messages: 7199
nosy: ced
priority: normal
severity: normal
status: new
title: Template not found return 500
type: behavior
versions: 2.0.0

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551129>
_________________________________________________


_______________________________________________
Roundup-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.