1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Removed unnecessary else clause in TemplateStrings.get_template().

This commit is contained in:
Srinivas Reddy Thatiparthy 2017-08-07 19:54:58 +05:30 committed by Tim Graham
parent 6a793d1788
commit 0a24714b26

View File

@ -35,12 +35,9 @@ class TemplateStrings(BaseEngine):
Origin(template_file, template_name, self),
'Source does not exist',
))
continue
return Template(template_code)
else:
raise TemplateDoesNotExist(template_name, tried=tried, backend=self)
else:
return Template(template_code)
raise TemplateDoesNotExist(template_name, tried=tried, backend=self)
class Template(string.Template):