fix: [tags] fixes bug when there are no event tags

pull/15/head
Christophe Vandeplas 2019-03-23 18:19:20 +01:00
parent 368c6847cb
commit d2202d8bf6
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ def entity_obj_to_entity(entity_obj, v, t, **kwargs):
return entity_obj(v, **kwargs) return entity_obj(v, **kwargs)
def attribute_to_entity(a, link_label=None, event_tags=None, only_self=False): def attribute_to_entity(a, link_label=None, event_tags=[], only_self=False):
# prepare some attributes to a better form # prepare some attributes to a better form
a['data'] = None # empty the file content as we really don't need this here a['data'] = None # empty the file content as we really don't need this here
if a['type'] == 'malware-sample': if a['type'] == 'malware-sample':