Update yeti.py

change loop
pull/488/head
Sebdraven 2021-04-20 13:38:45 +02:00
parent bb1cd7c4de
commit cec06ed26d
1 changed files with 4 additions and 2 deletions

View File

@ -80,10 +80,12 @@ class Yeti():
object_misp_domain_ip = self.__get_object_domain_ip(obs_to_add)
if object_misp_domain_ip:
self.misp_event.add_object(object_misp_domain_ip)
continue
object_misp_url = self.__get_object_url(obs_to_add)
if object_misp_url:
self.misp_event.add_object(object_misp_url)
if not object_misp_url and not object_misp_url:
continue
self.__get_attribute(obs_to_add, link)
def get_result(self):