mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
f9b56bbd63
commit
1831004c48
4
utils.py
4
utils.py
|
@ -3740,10 +3740,10 @@ def has_object_string_type(post_json_object: {}, debug: bool) -> bool:
|
||||||
if post_json_object['object'].get('type'):
|
if post_json_object['object'].get('type'):
|
||||||
if isinstance(post_json_object['object']['type'], str):
|
if isinstance(post_json_object['object']['type'], str):
|
||||||
return True
|
return True
|
||||||
if debug:
|
|
||||||
if post_json_object.get('type'):
|
if post_json_object.get('type'):
|
||||||
print('DEBUG: ' + post_json_object['type'] +
|
print('DEBUG: ' + post_json_object['type'] +
|
||||||
' type within object is not a string')
|
' type within object is not a string ' +
|
||||||
|
str(post_json_object))
|
||||||
if debug:
|
if debug:
|
||||||
print('No type field within object ' + post_json_object['id'])
|
print('No type field within object ' + post_json_object['id'])
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue