Fixed a bug in channelhandler if the channel had no desc.

This commit is contained in:
Griatch 2016-06-04 19:41:17 +02:00
parent a79108583c
commit e0d4f6a6c3
2 changed files with 1 additions and 2 deletions

View file

@ -190,7 +190,7 @@ class ChannelHandler(object):
key = channel.key
cmd.__doc__ = cmd.__doc__.format(channelkey=key,
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_cmdsets = {}

View file

@ -15,7 +15,6 @@ import re
import cgi
from .ansi import *
import time
# All xterm256 RGB equivalents