Fix KeyError in TAXII DataStore
parent
3ef63d5e17
commit
10bdfe9e25
|
@ -287,7 +287,7 @@ class TAXIICollectionSource(DataSource):
|
||||||
|
|
||||||
# query TAXII collection
|
# query TAXII collection
|
||||||
try:
|
try:
|
||||||
all_data = self.collection.get_objects(**taxii_filters_dict)['objects']
|
all_data = self.collection.get_objects(**taxii_filters_dict).get('objects', [])
|
||||||
|
|
||||||
# deduplicate data (before filtering as reduces wasted filtering)
|
# deduplicate data (before filtering as reduces wasted filtering)
|
||||||
all_data = deduplicate(all_data)
|
all_data = deduplicate(all_data)
|
||||||
|
|
Loading…
Reference in New Issue