Fixed a bug in channelhandler if the channel had no desc.
This commit is contained in:
parent
a79108583c
commit
e0d4f6a6c3
2 changed files with 1 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ class ChannelHandler(object):
|
||||||
key = channel.key
|
key = channel.key
|
||||||
cmd.__doc__ = cmd.__doc__.format(channelkey=key,
|
cmd.__doc__ = cmd.__doc__.format(channelkey=key,
|
||||||
lower_channelkey=key.strip().lower(),
|
lower_channelkey=key.strip().lower(),
|
||||||
channeldesc=channel.db.desc.strip())
|
channeldesc=channel.attributes.get("desc", default="").strip())
|
||||||
self.cached_channel_cmds.append(cmd)
|
self.cached_channel_cmds.append(cmd)
|
||||||
self.cached_cmdsets = {}
|
self.cached_cmdsets = {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ import re
|
||||||
import cgi
|
import cgi
|
||||||
from .ansi import *
|
from .ansi import *
|
||||||
|
|
||||||
import time
|
|
||||||
|
|
||||||
# All xterm256 RGB equivalents
|
# All xterm256 RGB equivalents
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue