Skip to content

Commit b787b5f

Browse files
committed
Address inconsistent type self.colors returned by Click generating exception in cmd
1 parent 6c7c08e commit b787b5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libtmux/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def cmd(self, *args, **kwargs):
119119
if self.config_file:
120120
args.insert(0, '-f{0}'.format(self.config_file))
121121
if self.colors:
122+
# Resolve inconsistent type returned by Click
123+
self.colors=int(self.colors)
122124
if self.colors == 256:
123125
args.insert(0, '-2')
124126
elif self.colors == 88:

0 commit comments

Comments
 (0)