From d97fc8f666aaaf55cc9405920bbc75f3c91f7298 Mon Sep 17 00:00:00 2001 From: m-r-r Date: Sun, 6 May 2012 12:32:53 +0200 Subject: [PATCH] Fixed some errors --- pelican/tools/pelican_quickstart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/tools/pelican_quickstart.py b/pelican/tools/pelican_quickstart.py index ca926667..cfd9bb4c 100755 --- a/pelican/tools/pelican_quickstart.py +++ b/pelican/tools/pelican_quickstart.py @@ -30,10 +30,10 @@ CONF = { def get_template(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)) - with open(tempalte, 'r') as fd: + with open(template, 'r') as fd: line = fd.readline() while line: yield line