Skip to content
Permalink
Browse files

inform the user he’s using a different config file only if it succeeds

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 10, 2015
1 parent fc25c9e commit fda0c92598d93c43e2f3fa8ed006188d53ca73b5
Showing with 3 additions and 3 deletions.
  1. +3 −3 nikola/__main__.py
@@ -91,9 +91,6 @@ def main(args=None):
quiet = True
global config

if conf_filename_changed:
LOGGER.info("Using config file '{0}'".format(conf_filename))

# Those commands do not require a `conf.py`. (Issue #1132)
# Moreover, actually having one somewhere in the tree can be bad, putting
# the output of that command (the new site) in an unknown directory that is
@@ -126,6 +123,9 @@ def main(args=None):
sys.exit(1)
config = {}

if conf_filename_changed:
LOGGER.info("Using config file '{0}'".format(conf_filename))

invariant = False

if len(args) > 0 and args[0] == b'build' and b'--invariant' in args:

0 comments on commit fda0c92

Please sign in to comment.