Fixed issue with bot crashing when processing a None message

pull/49/head
Russell 2019-02-08 13:36:09 -05:00
parent 39be6ea582
commit f8559bbc12
1 changed files with 2 additions and 0 deletions

View File

@ -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))