pull/83/head
Tran Trung Hieu 2020-05-20 16:49:37 +07:00
parent 2300977908
commit 04f7ae06ef
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def post_stix(manager, content_block, collection_ids, service_id):
for attrib in values:
log.info("Checking for existence of %s", attrib)
search = MISP.search("attributes", values=str(attrib))
if search["response"]["Attribute"] != []:
if search["Attribute"] != []:
# This means we have it!
log.info("%s is a duplicate, we'll ignore it.", attrib)
package.attributes.pop([x.value for x in package.attributes].index(attrib))