From a509e28c8f2f38df6260cdc12f4d4f783d1f2c33 Mon Sep 17 00:00:00 2001
From: terrtia <or1994@hotmail.fr>
Date: Wed, 22 Jan 2025 12:03:23 +0100
Subject: [PATCH] fix: [module extrsctor] log invalid object meta

---
 bin/lib/module_extractor.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/lib/module_extractor.py b/bin/lib/module_extractor.py
index 0fd19b69..84b2b98f 100755
--- a/bin/lib/module_extractor.py
+++ b/bin/lib/module_extractor.py
@@ -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'] = ''