Skip to content
Permalink
Browse files
Fix Kwpolska's suggestions, removed extra module-level code
  • Loading branch information
ralsina committed Oct 23, 2017
1 parent dc5ec42 commit 1df980c145b7471bd81e7cb9e7e70502d9adf058
Showing with 2 additions and 7 deletions.
  1. +2 −7 nikola/plugins/command/default_config.py
@@ -30,11 +30,6 @@
from nikola.utils import get_logger
import nikola.plugins.command.init

try:
print(nikola.plugins.command.init.CommandInit.create_configuration_to_string())
except:
print(nikola.plugins.command.init.CommandInit.create_configuration_to_string().encode('utf-8'))



LOGGER = get_logger('default_config')
@@ -46,13 +41,13 @@ class CommandShowConfig(Command):

doc_usage = ""
needs_config = False
doc_purpose = "print the default Nikola configuration."
doc_purpose = "Print the default Nikola configuration."
cmd_options = []


def _execute(self, options={}, args=None):
"""Show the default configuration."""
try:
print(nikola.plugins.command.init.CommandInit.create_configuration_to_string())
except:
except Exception:
print(nikola.plugins.command.init.CommandInit.create_configuration_to_string().encode('utf-8'))

0 comments on commit 1df980c

Please sign in to comment.