Merge branch 'master' of github.com:MISP/PyMISP

pull/285/head
Raphaël Vinot 2018-10-12 15:40:30 +02:00
commit dd2f4a2b14
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,6 @@ class CowrieMISPObject(AbstractMISPObjectGenerator):
self.add_attribute(object_relation, **value)
else:
# uniformize value, sometimes empty array
if len(value) == 0:
if isinstance(value, list) and len(value) == 0:
value = ''
self.add_attribute(object_relation, value=value)