[speak] Fix error on non-TextMessage arrival
This commit is contained in:
parent
8dfd0f07cc
commit
95deafe7af
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ def treat_for_speak(msg):
|
|||
def append_message(msg):
|
||||
global last, spk_th
|
||||
|
||||
if msg.message.find("TYPING ") == 0:
|
||||
if hasattr(msg, "message") and msg.message.find("TYPING ") == 0:
|
||||
return
|
||||
|
||||
vprnt = SpeakerVisitor(last)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue