Skip to content
Permalink
Browse files

check for command inheritance

  • Loading branch information
ralsina committed Sep 2, 2015
1 parent 2bef946 commit 3d1c4b8aac3f1d11d14398e6ba4fc4ef8bea051b
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/__main__.py
@@ -360,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 not sub_cmds[args[0]] in (Help, Command, TabCompletion):
if not sub_cmds[args[0]] in (Help, TabCompletion) and not isinstance(sub_cmds[args[0]], Command):
if not self.nikola.configured:
LOGGER.error("This command needs to run inside an "
"existing Nikola site.")

0 comments on commit 3d1c4b8

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