bugfix
This commit is contained in:
parent
f5478cc86e
commit
f63fc5ec3a
@ -19,6 +19,7 @@ class TmplLoader(BaseLoader, TmplUrl2File):
|
||||
|
||||
fp = self.url2file(template)
|
||||
if not os.path.isfile(fp):
|
||||
print(f'{template=} can not transfer to filename')
|
||||
raise TemplateNotFound(template)
|
||||
mtime = os.path.getmtime(fp)
|
||||
with codecs.open(fp,'r',coding) as f:
|
||||
|
Loading…
Reference in New Issue
Block a user