Make sure we return if there is nothing to add to the collection
parent
c98abb18f5
commit
32cb62cca2
|
@ -83,6 +83,8 @@ 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.
|
||||
|
||||
elif isinstance(stix_data, str):
|
||||
# adding json encoded string of STIX content
|
||||
|
|
Loading…
Reference in New Issue