Skip to content

Commit

Permalink
Merge pull request johnwheeler#213 from gregsadetsky/master
Browse files Browse the repository at this point in the history
fix for YamlLoader: raise TemplateNotFound instead of returning it
  • Loading branch information
johnwheeler authored Feb 28, 2018
2 parents 564a342 + 924e21f commit 875f509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_ask/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,4 +871,4 @@ def get_source(self, environment, template):
if template in self.mapping:
source = self.mapping[template]
return source, None, lambda: source == self.mapping.get(template)
return TemplateNotFound(template)
raise TemplateNotFound(template)

0 comments on commit 875f509

Please sign in to comment.