Skip to content

Commit

Permalink
check for command inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Sep 2, 2015
1 parent 2bef946 commit 3d1c4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/__main__.py
Expand Up @@ -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.")
Expand Down

0 comments on commit 3d1c4b8

Please sign in to comment.