Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 fda0c92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nikola/__main__.py
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit fda0c92

Please sign in to comment.