Skip to content
Permalink
Browse files
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 208dfacc6b26fdb3a92911a9b0ce1a8023151255
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/command/new_post.py
@@ -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
@@ -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(

0 comments on commit 208dfac

Please sign in to comment.