Skip to content

Commit 5fda9a4

Browse files
Printing the exception,if Binary is corrupt
1 parent b6c734f commit 5fda9a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browserstack/local_binary.py

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

44
try:
@@ -87,6 +87,7 @@ def __verify_binary(self,path):
8787
pattern = re.compile("BrowserStack Local version \d+\.\d+")
8888
return bool(pattern.match(binary_response))
8989
except:
90+
traceback.print_exc()
9091
return False
9192

9293
def get_binary(self):

0 commit comments

Comments
 (0)