Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix importing posts in new_post
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 3, 2017
1 parent 74b96ee commit 208dfac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/command/new_post.py
Expand Up @@ -273,7 +273,7 @@ def _execute(self, options, args):
content_format = compiler
if not content_format:
LOGGER.error("Unknown {0} extension {1}, maybe you need to install a plugin or enable an existing one?".format(content_type, extension))
return
return

elif not content_format and import_file:
# content_format not specified. If import_file was given, use
Expand All @@ -284,7 +284,7 @@ def _execute(self, options, args):
content_format = compiler
if not content_format:
LOGGER.error("Unknown {0} extension {1}, maybe you need to install a plugin or enable an existing one?".format(content_type, extension))
return
return

elif not content_format: # Issue #400
content_format = get_default_compiler(
Expand Down

0 comments on commit 208dfac

Please sign in to comment.