From 7c7d92948aa2176ca10e6d49c8f3127f0b3d4627 Mon Sep 17 00:00:00 2001 From: Russell Date: Fri, 8 Feb 2019 14:25:49 -0500 Subject: [PATCH] Fixed issue with bot crashing when processing a None message (#49) Fixes #46 --- 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))