Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

exception libtmux

TmuxCommandTimeout

A tmux client invocation exceeded its wall-clock timeout.

Source and package
Qualified name
libtmux.exc.TmuxCommandTimeout
Module
libtmux.exc
Package
libtmux
Source
src/libtmux/exc.py
exception libtmux.exc.TmuxCommandTimeout

Description

The spawned tmux client is killed with SIGKILL and reaped before this exception is raised. Commands already accepted by the tmux server, as well as running panes and the server itself, are not rolled back or stopped. Environment assignments in the formatted message have their values masked to *** and control characters escaped onto a single line.

Examples

>>> from libtmux import exc
>>> err = exc.TmuxCommandTimeout(["tmux", "wait-for", "build-done"], 0.5)
>>> err.argv
('tmux', 'wait-for', 'build-done')
>>> err.cmd
['tmux', 'wait-for', 'build-done']
>>> err.timeout
0.5
>>> str(err)
'tmux command timed out after 0.5s: tmux wait-for build-done'
>>> issubclass(exc.TmuxCommandTimeout, exc.LibTmuxException)
True
>>> issubclass(exc.TmuxCommandTimeout, TimeoutError)
True

Members3 members

  • cmd property Return argv as a mutable list[str] copy.
  • __init__ method
  • __reduce__ method Serialize argv and timeout across worker processes.

Inherited members1 member

Reached through libtmux.exc.LibTmuxException.

Esc
Search in

Type to search.

Reference previewOpen reference