We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.format()
1 parent b1c3ade commit 1d46d79Copy full SHA for 1d46d79
src/libtmux/common.py
@@ -409,13 +409,14 @@ def has_minimum_version(raises: bool = True) -> bool:
409
"""
410
if get_version() < LooseVersion(TMUX_MIN_VERSION):
411
if raises:
412
- raise exc.VersionTooLow(
+ msg = (
413
"libtmux only supports tmux {} and greater. This system"
414
" has {} installed. Upgrade your tmux to use libtmux.".format(
415
TMUX_MIN_VERSION,
416
get_version(),
417
- ),
+ )
418
)
419
+ raise exc.VersionTooLow(msg)
420
else:
421
return False
422
return True
0 commit comments