This commit is contained in:
yumoqing 2024-02-18 16:50:29 +08:00
parent f5478cc86e
commit f63fc5ec3a

View File

@ -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: