bugfix
This commit is contained in:
parent
f63fc5ec3a
commit
a456113bc7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user