Change logic for case `isinstance(stix_data, list)``
parent
32cb62cca2
commit
eeb34ebbef
|
@ -83,8 +83,7 @@ class TAXIICollectionSink(DataSink):
|
||||||
# adding list of something - recurse on each
|
# adding list of something - recurse on each
|
||||||
for obj in stix_data:
|
for obj in stix_data:
|
||||||
self.add(obj, version=version)
|
self.add(obj, version=version)
|
||||||
else:
|
return
|
||||||
return # If the list is empty just return.
|
|
||||||
|
|
||||||
elif isinstance(stix_data, str):
|
elif isinstance(stix_data, str):
|
||||||
# adding json encoded string of STIX content
|
# adding json encoded string of STIX content
|
||||||
|
|
Loading…
Reference in New Issue