This commit is contained in:
yumoqing 2024-02-18 16:52:41 +08:00
parent f63fc5ec3a
commit a456113bc7

View File

@ -18,8 +18,8 @@ class TmplLoader(BaseLoader, TmplUrl2File):
coding = config.website.coding
fp = self.url2file(template)
if not os.path.isfile(fp):
print(f'{template=} can not transfer to filename')
if not os.path.isfile(fp):
raise TemplateNotFound(template)
mtime = os.path.getmtime(fp)
with codecs.open(fp,'r',coding) as f: