Skip to content

Commit 917f036

Browse files
committed
Raise exception if TemplateView can't find any templates
1 parent 9ee1c5b commit 917f036

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bolt/views/templates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def get_template(self) -> Template:
5353
except TemplateFileMissing:
5454
pass
5555

56+
raise TemplateFileMissing()
57+
5658
def render_template(self) -> str:
5759
return self.get_template().render(self.get_template_context())
5860

0 commit comments

Comments
 (0)