catch UnicodeDecodeError
This commit is contained in:
parent
6b91e581f6
commit
4e1c7d2bba
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ class Serializer(object):
|
|||
return defines.Codes.BAD_REQUEST.number
|
||||
except struct.error:
|
||||
return defines.Codes.BAD_REQUEST.number
|
||||
except UnicodeDecodeError as e:
|
||||
logger.debug(e)
|
||||
return defines.Codes.BAD_REQUEST.number
|
||||
|
||||
@staticmethod
|
||||
def serialize(message):
|
||||
|
|
Loading…
Reference in a new issue