fix error name
parent
f329a03350
commit
084403a7b0
|
@ -252,13 +252,13 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||||
self.logger.debug('output message: {}'.format(msg))
|
self.logger.debug('output message: {}'.format(msg))
|
||||||
try:
|
try:
|
||||||
c.privmsg(chan, msg)
|
c.privmsg(chan, msg)
|
||||||
except c.MessageTooLong:
|
except irc.client.MessageTooLong:
|
||||||
self.logger.error('output message too long: {}'.format(msg))
|
self.logger.error('output message too long: {}'.format(msg))
|
||||||
elif output.msg_type == pinhook.plugin.OutputType.Action:
|
elif output.msg_type == pinhook.plugin.OutputType.Action:
|
||||||
self.logger.debug('output action: {}'.format(msg))
|
self.logger.debug('output action: {}'.format(msg))
|
||||||
try:
|
try:
|
||||||
c.action(chan, msg)
|
c.action(chan, msg)
|
||||||
except c.MessageTooLong:
|
except irc.client.MessageTooLong:
|
||||||
self.logger.error('output message too long: {}'.format(msg))
|
self.logger.error('output message too long: {}'.format(msg))
|
||||||
else:
|
else:
|
||||||
self.logger.warning("Unsupported output type '{}'".format(output.msg_type))
|
self.logger.warning("Unsupported output type '{}'".format(output.msg_type))
|
||||||
|
|
Loading…
Reference in New Issue