Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #1983
  • Loading branch information
ralsina committed Sep 2, 2015
1 parent 10733b8 commit 791a168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion nikola/__main__.py
Expand Up @@ -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
Expand Down Expand Up @@ -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.")
Expand Down

0 comments on commit 791a168

Please sign in to comment.