From b787b5f6a179b55f391621e0291df1f2811f20fc Mon Sep 17 00:00:00 2001 From: Joshua Wright Date: Mon, 30 Nov 2020 06:46:35 -0500 Subject: [PATCH] Address inconsistent type self.colors returned by Click generating exception in cmd --- libtmux/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtmux/server.py b/libtmux/server.py index 0172eeed2..ce8ac5755 100644 --- a/libtmux/server.py +++ b/libtmux/server.py @@ -119,6 +119,8 @@ def cmd(self, *args, **kwargs): if self.config_file: args.insert(0, '-f{0}'.format(self.config_file)) if self.colors: + # Resolve inconsistent type returned by Click + self.colors=int(self.colors) if self.colors == 256: args.insert(0, '-2') elif self.colors == 88: