mirror of https://gitlab.com/bashrc2/epicyon
Check that object type is a string
parent
90417b5f8e
commit
633e25692a
5
inbox.py
5
inbox.py
|
@ -713,6 +713,11 @@ def _receiveUndo(session, baseDir: str, httpPrefix: str,
|
|||
if debug:
|
||||
print('DEBUG: ' + messageJson['type'] + ' has no object type')
|
||||
return False
|
||||
if not isinstance(messageJson['object']['type'], str):
|
||||
if debug:
|
||||
print('DEBUG: ' + messageJson['type'] +
|
||||
' type within object is not a string')
|
||||
return False
|
||||
if not messageJson['object'].get('object'):
|
||||
if debug:
|
||||
print('DEBUG: ' + messageJson['type'] +
|
||||
|
|
Loading…
Reference in New Issue