Try to prevent transwhat from crashing on malformed protobuf
This commit is contained in:
parent
29d92b456e
commit
a5877bc1a9
|
@ -4,7 +4,6 @@ import struct
|
|||
import sys
|
||||
import os
|
||||
import logging
|
||||
|
||||
import google.protobuf
|
||||
|
||||
def WRAP(MESSAGE, TYPE):
|
||||
|
|
|
@ -458,7 +458,7 @@ class Session(YowsupApp):
|
|||
else:
|
||||
room = sender
|
||||
try:
|
||||
group = self.groups[room]
|
||||
group = self.groups[self._lengthenGroupId(room)]
|
||||
self.logger.info("Group Message from %s to %s Groups: %s",
|
||||
group.nick , group , self.groups)
|
||||
self.backend.handleMessage(
|
||||
|
|
Loading…
Reference in a new issue