-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
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: |
Reactions are currently unavailable