Skip to content

Commit

Permalink
fix: [module extrsctor] log invalid object meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jan 22, 2025
1 parent 02aa9a9 commit a509e28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/lib/module_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]['link'] = ail_objects.get_object_link(ob_type, subtype, obj_id)
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]['link'] = ''

Expand Down

0 comments on commit a509e28

Please sign in to comment.