From f8559bbc12a8c368dac360162b1ac6fe1401e40b Mon Sep 17 00:00:00 2001 From: Russell Date: Fri, 8 Feb 2019 13:36:09 -0500 Subject: [PATCH] Fixed issue with bot crashing when processing a None message --- pinhook/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pinhook/bot.py b/pinhook/bot.py index bbc02dc..4d2eacf 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -237,6 +237,8 @@ class Bot(irc.bot.SingleServerIRCBot): self.process_output(c, chan, output) def process_output(self, c, chan, output): + if not output.msg: + return for msg in output.msg: if len(msg.encode('UTF-8')) > 512: self.logger.error('output message too long: {}'.format(msg))