diff --git a/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py b/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py index 3474a70..1bf98ca 100644 --- a/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py +++ b/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py @@ -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)