System information (please complete the following information):
- OS: [14.1.2 (23B92)
- Python Version: Python/3.10.5
- SDK Version: Latest
Describe the bug
The client.entity_matching.retrieve endpoint raises an error if the model does not exist. It should return None.
To Reproduce
Runnable code reproducing the error.
from cognite.client import CogniteClient
client = CogniteClient()
client.entity_matching.retrieve(external_id = "1234")
#assuming that model with ex_id = "1234" does not exist.
Expected behavior
It should not raise an error, but return None.
|
def retrieve(self, id: int | None = None, external_id: str | None = None) -> EntityMatchingModel | None: |
System information (please complete the following information):
Describe the bug
The client.entity_matching.retrieve endpoint raises an error if the model does not exist. It should return None.
To Reproduce
Runnable code reproducing the error.
Expected behavior
It should not raise an error, but return None.
cognite-sdk-python/cognite/client/_api/entity_matching.py
Line 43 in 50e35ac