Merge pull request #284 from mokaddem/fixFeedGenerator

fix: prevent checking length on a integer
pull/285/head
Sami Mokaddem 2018-10-12 14:06:09 +02:00 committed by GitHub
commit 7cb5fd296a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)