mirror of https://github.com/MISP/PyMISP
Merge pull request #284 from mokaddem/fixFeedGenerator
fix: prevent checking length on a integerpull/285/head
commit
7cb5fd296a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue