mirror of
https://github.com/django/django.git
synced 2025-01-18 14:24:39 +00:00
Removed unnecessary else clause in TemplateStrings.get_template().
This commit is contained in:
parent
6a793d1788
commit
0a24714b26
@ -35,11 +35,8 @@ class TemplateStrings(BaseEngine):
|
|||||||
Origin(template_file, template_name, self),
|
Origin(template_file, template_name, self),
|
||||||
'Source does not exist',
|
'Source does not exist',
|
||||||
))
|
))
|
||||||
continue
|
|
||||||
|
|
||||||
return Template(template_code)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
return Template(template_code)
|
||||||
raise TemplateDoesNotExist(template_name, tried=tried, backend=self)
|
raise TemplateDoesNotExist(template_name, tried=tried, backend=self)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user