We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29c05eb commit d0814d2Copy full SHA for d0814d2
1 file changed
browserstack/local.py
@@ -53,10 +53,10 @@ def start(self, **kwargs):
53
54
os.system('echo "" > "'+ self.local_logfile_path +'"')
55
try:
56
- if err:
57
- data = json.loads(err)
58
- else:
+ if out:
59
data = json.loads(out)
+ else:
+ data = json.loads(err)
60
61
if data['state'] != "connected":
62
raise BrowserStackLocalError(data["message"])
0 commit comments