Skip to content

Commit 613bb1e

Browse files
committed
Deal with no style set
1 parent 4ee6734 commit 613bb1e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • trepan/processor/command/show_subcmd

trepan/processor/command/show_subcmd/style.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def complete(self, prefix):
1717

1818

1919
class ShowStyle(DebuggerSubcommand):
20-
"""**show style* *name*
20+
"""**show style* *pygments-style*
2121
2222
Show the pygments style used in formatting 256-color terminal text.
2323
@@ -36,11 +36,11 @@ def run(self, args):
3636
self.errmsg("Expecting no args")
3737
return
3838

39-
style = self.debugger.settings[self.name]
39+
style = self.debugger.settings.get(self.name, None)
4040
if style:
41-
self.msg("Pygments style is %s" % style)
41+
self.msg("Pygments style is %s." % style)
4242
else:
43-
self.msg("Pygments style not set")
43+
self.msg("Pygments style not set.")
4444
return
4545

4646
pass

0 commit comments

Comments
 (0)