Change logic for case `isinstance(stix_data, list)``

stix2.0
Emmanuelle Vargas-Gonzalez 2018-03-19 12:03:25 -04:00
parent 32cb62cca2
commit eeb34ebbef
1 changed files with 1 additions and 2 deletions

View File

@ -83,8 +83,7 @@ class TAXIICollectionSink(DataSink):
# adding list of something - recurse on each
for obj in stix_data:
self.add(obj, version=version)
else:
return # If the list is empty just return.
return
elif isinstance(stix_data, str):
# adding json encoded string of STIX content