This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 1df980c
1 parent dc5ec42 commit 1df980c Copy full SHA for 1df980c
File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 30
30
from nikola .utils import get_logger
31
31
import nikola .plugins .command .init
32
32
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
-
38
33
39
34
40
35
LOGGER = get_logger ('default_config' )
@@ -46,13 +41,13 @@ class CommandShowConfig(Command):
46
41
47
42
doc_usage = ""
48
43
needs_config = False
49
- doc_purpose = "print the default Nikola configuration."
44
+ doc_purpose = "Print the default Nikola configuration."
50
45
cmd_options = []
51
46
52
47
53
48
def _execute (self , options = {}, args = None ):
54
49
"""Show the default configuration."""
55
50
try :
56
51
print (nikola .plugins .command .init .CommandInit .create_configuration_to_string ())
57
- except :
52
+ except Exception :
58
53
print (nikola .plugins .command .init .CommandInit .create_configuration_to_string ().encode ('utf-8' ))
You can’t perform that action at this time.
0 commit comments