master
yumoqing 2024-02-18 16:52:41 +08:00
parent f63fc5ec3a
commit a456113bc7
1 changed files with 1 additions and 1 deletions

View File

@ -18,8 +18,8 @@ class TmplLoader(BaseLoader, TmplUrl2File):
coding = config.website.coding
fp = self.url2file(template)
print(f'{template=} can not transfer to filename')
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: