You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:/Users/user-1/example_project/mem_store.py", line 98, in <module>
example()
File "C:/Users/user-1/example_project/mem_store.py", line 94, in example
mem_store.add(file_observable)
File "C:\Users\user-1\venv\lib\site-packages\stix2\datastore\__init__.py", line 216, in add
return self.sink.add(*args, **kwargs)
File "C:\Users\user-1\venv\lib\site-packages\stix2\datastore\memory.py", line 185, in add
_add(self, stix_data, self.allow_custom, version)
File "C:\Users\user-1\venv\lib\site-packages\stix2\datastore\memory.py", line 62, in _add
obj_family.add(stix_obj)
File "C:\Users\user-1\venv\lib\site-packages\stix2\datastore\memory.py", line 77, in add
self.all_versions[obj["modified"]] = obj
File "C:\Users\user-1\venv\lib\site-packages\stix2\base.py", line 195, in __getitem__
return self._inner[key]
KeyError: 'modified'
The text was updated successfully, but these errors were encountered:
Looks like the error is in version-related code which is trying to access the modified property. 2.1 SCO's don't have that property. Obviously that code was written before 2.1 SCOs became TLOs.
Below an example of how to trigger the problem:
I obtain the following traceback:
The text was updated successfully, but these errors were encountered: