diff options
| author | Srinivas Reddy Thatiparthy <srinivasreddy@users.noreply.github.com> | 2017-08-07 19:54:58 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-08-07 10:24:58 -0400 |
| commit | 0a24714b260cfbf955bb093bad1a77393579e783 (patch) | |
| tree | 9f307c236aae2e773656f72e3150d7a97a95cf7f | |
| parent | 6a793d1788a243c1b1a4b6bb39dbbebdc6bff4f1 (diff) | |
Removed unnecessary else clause in TemplateStrings.get_template().
| -rw-r--r-- | django/template/backends/dummy.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/django/template/backends/dummy.py b/django/template/backends/dummy.py index 634ed32ffb..a59e10d178 100644 --- a/django/template/backends/dummy.py +++ b/django/template/backends/dummy.py @@ -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): |
