Skip to content
Myr

FileSystemLoader includes search paths in error

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yourun-Proger · committed by David Lord · parent b4b28ec · Browse files · 2 files+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−1 removed

  • other:+6 added−1 removed

2 files+6 added−1 removed

modified:src/jinja2/loaders.py+4 added-1 removed
202 unmodified lines
203204 if os.path.isfile(filename):205 break206 else:207 raise TemplateNotFound(template)207 raise TemplateNotFound(208 f"{template} not found in the following search path(s):"209 f" {self.searchpath}"210 )211212 with open(filename, encoding=self.encoding) as f:213 contents = f.read()214
473 unmodified lines
modified:CHANGES.rst+2 added
33 unmodified lines
34 objects. :issue:`2025`35- Fix `copy`/`pickle` support for the internal ``missing`` object.36 :issue:`2027`37- ``Environment.overlay(enable_async)`` is applied correctly. :pr:`2061`38- Paths where the loader searched for the template were added39 to the error message. :issue:`1661`404142Version 3.1.443-------------
994 unmodified lines