Skip to content

Commit f677bb5

Browse files
committed
chore(ruff): Use TmuxObjectDoesNotExist
1 parent 17ad109 commit f677bb5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libtmux/neo.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import typing as t
44

55
from libtmux import exc
6-
from libtmux._internal.query_list import ObjectDoesNotExist
76
from libtmux.common import tmux_cmd
87
from libtmux.formats import FORMAT_SEPARATOR
98

@@ -240,9 +239,11 @@ def fetch_obj(
240239
obj = _obj
241240

242241
if obj is None:
243-
raise ObjectDoesNotExist(
244-
f"Could not find {obj_key}={obj_id} for {list_cmd} "
245-
f'{list_extra_args if list_extra_args is not None else ""}'
242+
raise exc.TmuxObjectDoesNotExist(
243+
obj_key=obj_key,
244+
obj_id=obj_id,
245+
list_cmd=list_cmd,
246+
list_extra_args=list_extra_args,
246247
)
247248

248249
assert obj is not None

0 commit comments

Comments
 (0)