When requesting the events for a specific entity with the entity_events method in the EntityAPI, it seems that some attributes like 'commandType' are not always available (maybe in the case of a deleted entity), resulting to a KeyError:
File "venv\lib\site-packages\pyPreservica\entityAPI.py", line 1866, in entity_events
paged_set = self._entity_events_page(entity)
File "venv\lib\site-packages\pyPreservica\entityAPI.py", line 1820, in _entity_events_page
result = {'commandType': event_action.attrib['commandType']}
KeyError: 'commandType'
Hi James,
When requesting the events for a specific entity with the entity_events method in the EntityAPI, it seems that some attributes like 'commandType' are not always available (maybe in the case of a deleted entity), resulting to a KeyError:
File "venv\lib\site-packages\pyPreservica\entityAPI.py", line 1866, in entity_events paged_set = self._entity_events_page(entity) File "venv\lib\site-packages\pyPreservica\entityAPI.py", line 1820, in _entity_events_page result = {'commandType': event_action.attrib['commandType']} KeyError: 'commandType'