summaryrefslogtreecommitdiffstats
path: root/nikola/__main__.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:15 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:15 -0300
commit5ec02211214350ee558fd9f6bb052264fd24f75e (patch)
treeb61e8c61a95d18a91d053e71dcbd7b30e47552a1 /nikola/__main__.py
parent58c4878526dec5510f23c812274686787d8724ba (diff)
Imported Upstream version 7.1.0upstream/7.1.0
Diffstat (limited to 'nikola/__main__.py')
-rw-r--r--nikola/__main__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/nikola/__main__.py b/nikola/__main__.py
index 455926d..f492800 100644
--- a/nikola/__main__.py
+++ b/nikola/__main__.py
@@ -78,7 +78,6 @@ def main(args=None):
# the output of that command (the new site) in an unknown directory that is
# not the current working directory. (does not apply to `version`)
argname = args[0] if len(args) > 0 else None
- # FIXME there are import plugins in the repo, so how do we handle this?
if argname and argname not in ['init', 'version'] and not argname.startswith('import_'):
root = get_root_dir()
if root:
@@ -91,8 +90,8 @@ def main(args=None):
config = conf.__dict__
except Exception:
if os.path.exists('conf.py'):
- msg = traceback.format_exc(0).splitlines()[1]
- LOGGER.error('In conf.py line {0}: {1}'.format(sys.exc_info()[2].tb_lineno, msg))
+ msg = traceback.format_exc(0)
+ LOGGER.error('conf.py cannot be parsed.\n{0}'.format(msg))
sys.exit(1)
config = {}