mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixed some errors
This commit is contained in:
parent
7c53cc8955
commit
d97fc8f666
1 changed files with 2 additions and 2 deletions
|
|
@ -30,10 +30,10 @@ CONF = {
|
||||||
def get_template(name):
|
def get_template(name):
|
||||||
template = os.path.join(_TEMPLATES_DIR, "{0}.in".format(name))
|
template = os.path.join(_TEMPLATES_DIR, "{0}.in".format(name))
|
||||||
|
|
||||||
if os.path.isfile(template):
|
if not os.path.isfile(template):
|
||||||
raise RuntimeError("Cannot open {0}".format(template))
|
raise RuntimeError("Cannot open {0}".format(template))
|
||||||
|
|
||||||
with open(tempalte, 'r') as fd:
|
with open(template, 'r') as fd:
|
||||||
line = fd.readline()
|
line = fd.readline()
|
||||||
while line:
|
while line:
|
||||||
yield line
|
yield line
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue