Skip to content
Permalink
Browse files

fix #1983

  • Loading branch information
ralsina committed Sep 2, 2015
1 parent 10733b8 commit 791a16830e1dde2c3a4abda59bf9515b8f55fb48
Showing with 3 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +2 −1 nikola/__main__.py
@@ -28,6 +28,7 @@ Features
Bugfixes
--------

* Make nikola tabcompletion work outside sites (Issue #1983)
* If webassets is not installed, use unbundled assets (Issue #1992)
* Check links in Atom and sitemap files (Issue #1993)
* Link checker should check all absolute URLs to self (Issue #1991)
@@ -44,6 +44,7 @@
from doit.cmd_help import Help as DoitHelp
from doit.cmd_run import Run as DoitRun
from doit.cmd_clean import Clean as DoitClean
from doit.cmd_completion import TabCompletion
from doit.cmd_auto import Auto as DoitAuto
from logbook import NullHandler
from blinker import signal
@@ -359,7 +360,7 @@ def run(self, cmd_args):
LOGGER.info('Did you mean "{}" or "{}"?'.format('", "'.join(best_sugg[:-1]), best_sugg[-1]))
return 3

if sub_cmds[args[0]] is not Help and not isinstance(sub_cmds[args[0]], Command): # Is a doit command
if not sub_cmds[args[0]] in (Help, Command, TabCompletion):
if not self.nikola.configured:
LOGGER.error("This command needs to run inside an "
"existing Nikola site.")

0 comments on commit 791a168

Please sign in to comment.
You can’t perform that action at this time.