fix: Incorrect expectation of attribute value to be a str - take 2

Related #553
pull/557/head
Raphaël Vinot 2020-03-13 12:02:03 +01:00
parent 8cf3887d54
commit 2a9c79a1e9
1 changed files with 1 additions and 1 deletions

View File

@ -1276,7 +1276,7 @@ class MISPEvent(AbstractMISP):
if ((hasattr(a, 'id') and a.id == attribute_identifier)
or (hasattr(a, 'uuid') and a.uuid == attribute_identifier)
or (hasattr(a, 'value') and attribute_identifier == a.value
or attribute_identifier in a.value.split('|'))):
or (isinstance(a.value, str) and attribute_identifier in a.value.split('|')))):
tags += a.tags
return tags