Skip to content

Commit d2a38b5

Browse files
committed
uniformize the 2 exception messages
1 parent 2f40702 commit d2a38b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrahub_sdk/store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _get(self, key: str, kind: str | type[SchemaType] | None = None, raise_when_
5454
raise NodeNotFoundError(
5555
node_type=kind_name,
5656
identifier={"key": [key]},
57-
message="Unable to find the node in the Store for the specified kind",
57+
message=f"Unable to find the node {key!r} in the Store for the specified kind",
5858
)
5959
for item in self._store.values(): # type: ignore[attr-defined]
6060
if key in item:
@@ -64,7 +64,7 @@ def _get(self, key: str, kind: str | type[SchemaType] | None = None, raise_when_
6464
raise NodeNotFoundError(
6565
node_type="n/a",
6666
identifier={"key": [key]},
67-
message=f"Unable to find the node {key!r} in the store",
67+
message=f"Unable to find the node {key!r} in the Store",
6868
)
6969

7070
def _get_by_hfid(self, key: str, raise_when_missing: bool = True): # type: ignore[no-untyped-def]

0 commit comments

Comments
 (0)