Skip to content

Commit

Permalink
Changed variable name and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Feb 3, 2022
1 parent 8a366ef commit af293c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datasette/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,10 +1212,10 @@ async def handle_404(self, request, send, exception=None):
else:
# Is there a pages/* template matching this path?
route_path = request.scope.get("route_path", request.scope["path"])
# Ensure template_path always uses "/" to match jina
template_path = "pages" + route_path + ".html"
# Jinja requires template names to use "/" even on Windows
template_name = "pages" + route_path + ".html"
try:
template = self.ds.jinja_env.select_template([template_path])
template = self.ds.jinja_env.select_template([template_name])
except TemplateNotFound:
template = None
if template is None:
Expand Down

0 comments on commit af293c9

Please sign in to comment.