Skip to content

Commit e26abe0

Browse files
committed
feat(exc): Add VariableUnpackingError
1 parent 8f04c4f commit e26abe0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libtmux/exc.py

+8
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ class WaitTimeout(LibTmuxException):
7373
"""Function timed out without meeting condition"""
7474

7575

76+
class VariableUnpackingError(LibTmuxException):
77+
78+
"""Error unpacking variable"""
79+
80+
def __init__(self, variable: t.Optional[t.Any] = None, *args: object):
81+
return super().__init__(f"Unexpected variable: {variable!s}")
82+
83+
7684
class PaneError(LibTmuxException):
7785
"""Any type of pane related error"""
7886

0 commit comments

Comments
 (0)