Skip to content

Commit ac3e454

Browse files
Python3 check_output responds with bytes
1 parent 5fda9a4 commit ac3e454

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

browserstack/local_binary.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import platform, os, sys, zipfile, stat, tempfile, re, subprocess, traceback
1+
import platform, os, sys, zipfile, stat, tempfile, re, subprocess
22
from browserstack.bserrors import BrowserStackLocalError
33

44
try:
@@ -83,11 +83,10 @@ def download(self, chunk_size=8192, progress_hook=None):
8383

8484
def __verify_binary(self,path):
8585
try:
86-
binary_response = subprocess.check_output([path,"--version"])
86+
binary_response = subprocess.check_output([path,"--version"]).decode("utf-8")
8787
pattern = re.compile("BrowserStack Local version \d+\.\d+")
8888
return bool(pattern.match(binary_response))
8989
except:
90-
traceback.print_exc()
9190
return False
9291

9392
def get_binary(self):

0 commit comments

Comments
 (0)