From 084403a7b003d9069904a530ba7e49b46c2fbb07 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Sat, 2 Mar 2019 10:53:03 -0800 Subject: [PATCH] fix error name --- pinhook/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinhook/bot.py b/pinhook/bot.py index 61e04e9..e8198fe 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -252,13 +252,13 @@ class Bot(irc.bot.SingleServerIRCBot): self.logger.debug('output message: {}'.format(msg)) try: c.privmsg(chan, msg) - except c.MessageTooLong: + except irc.client.MessageTooLong: self.logger.error('output message too long: {}'.format(msg)) elif output.msg_type == pinhook.plugin.OutputType.Action: self.logger.debug('output action: {}'.format(msg)) try: c.action(chan, msg) - except c.MessageTooLong: + except irc.client.MessageTooLong: self.logger.error('output message too long: {}'.format(msg)) else: self.logger.warning("Unsupported output type '{}'".format(output.msg_type))