merge-requests/30/head
Bob Mottram 2023-04-23 10:36:20 +01:00
parent f9b56bbd63
commit 1831004c48
1 changed files with 4 additions and 4 deletions

View File

@ -3740,10 +3740,10 @@ def has_object_string_type(post_json_object: {}, debug: bool) -> bool:
if post_json_object['object'].get('type'):
if isinstance(post_json_object['object']['type'], str):
return True
if debug:
if post_json_object.get('type'):
print('DEBUG: ' + post_json_object['type'] +
' type within object is not a string')
if post_json_object.get('type'):
print('DEBUG: ' + post_json_object['type'] +
' type within object is not a string ' +
str(post_json_object))
if debug:
print('No type field within object ' + post_json_object['id'])
return False