fix: [module extrsctor] log invalid object meta

This commit is contained in:
terrtia 2025-01-22 12:03:23 +01:00
parent 02aa9a983b
commit a509e28c8f
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -306,6 +306,7 @@ def get_extracted_by_match(extracted):
matches[str_obj]['icon'] = ail_objects.get_object_svg(ob_type, subtype, obj_id) matches[str_obj]['icon'] = ail_objects.get_object_svg(ob_type, subtype, obj_id)
matches[str_obj]['link'] = ail_objects.get_object_link(ob_type, subtype, obj_id) matches[str_obj]['link'] = ail_objects.get_object_link(ob_type, subtype, obj_id)
except TypeError: except TypeError:
logger.critical(f'module extractor invalid object: {ob_type} : {subtype} : {obj_id}')
matches[str_obj]['icon'] = {'style': 'fas', 'icon': '\uf00d', 'color': 'red', 'radius': 5} matches[str_obj]['icon'] = {'style': 'fas', 'icon': '\uf00d', 'color': 'red', 'radius': 5}
matches[str_obj]['link'] = '' matches[str_obj]['link'] = ''