Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1df980c

Browse files
committedOct 23, 2017
Fix Kwpolska's suggestions, removed extra module-level code
1 parent dc5ec42 commit 1df980c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎nikola/plugins/command/default_config.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
from nikola.utils import get_logger
3131
import nikola.plugins.command.init
3232

33-
try:
34-
print(nikola.plugins.command.init.CommandInit.create_configuration_to_string())
35-
except:
36-
print(nikola.plugins.command.init.CommandInit.create_configuration_to_string().encode('utf-8'))
37-
3833

3934

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

4742
doc_usage = ""
4843
needs_config = False
49-
doc_purpose = "print the default Nikola configuration."
44+
doc_purpose = "Print the default Nikola configuration."
5045
cmd_options = []
5146

5247

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

0 commit comments

Comments
 (0)
Please sign in to comment.