dodge another unicode crash
This commit is contained in:
parent
daa018c64b
commit
f4dc667c77
|
@ -64,7 +64,9 @@ class MegaHAL(Module):
|
|||
line = addressed_re.sub('', line)
|
||||
append_nick = True
|
||||
|
||||
reply = self.megahal.get_reply(line)
|
||||
try:
|
||||
reply = self.megahal.get_reply(line)
|
||||
except UnicodeDecodeError: pass
|
||||
elif re.search('^megahal$', line, re.IGNORECASE) is not None:
|
||||
reply = self.megahal.get_reply_nolearn('')
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue