chg: [MISP Export] filter None MISP objects

This commit is contained in:
terrtia 2024-09-10 10:08:33 +02:00
parent 24046734c1
commit 0a67441416
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -212,6 +212,7 @@ class MISPExporter(AbstractExporter, ABC):
misp_objects = ail_objects.get_misp_objects(objs) misp_objects = ail_objects.get_misp_objects(objs)
for obj in misp_objects: for obj in misp_objects:
if obj:
event.add_object(obj) event.add_object(obj)
# print(event.to_json()) # print(event.to_json())