Skip to content

Commit ba6eea0

Browse files
committed
docs(QueryList): Link to exceptions
1 parent 12fb46e commit ba6eea0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libtmux/_internal/query_list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ def get(
368368
default: Optional[Any] = no_arg,
369369
**kwargs: Any,
370370
) -> Optional[T]:
371-
"""Retrieve one object
371+
"""Retrieve one object.
372372
373-
Raises exception if multiple objects found.
373+
Raises :exc:`MultipleObjectsReturned` if multiple objects found.
374374
375-
Raises exception if no object found, unless ``default``
375+
Raises :exc:`ObjectDoesNotExist` if no object found, unless ``default`` stated.
376376
"""
377377
objs = self.filter(matcher=matcher, **kwargs)
378378
if len(objs) > 1:

0 commit comments

Comments
 (0)