Skip to content

Commit d0814d2

Browse files
committed
err first
1 parent 29c05eb commit d0814d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

browserstack/local.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def start(self, **kwargs):
5353

5454
os.system('echo "" > "'+ self.local_logfile_path +'"')
5555
try:
56-
if err:
57-
data = json.loads(err)
58-
else:
56+
if out:
5957
data = json.loads(out)
58+
else:
59+
data = json.loads(err)
6060

6161
if data['state'] != "connected":
6262
raise BrowserStackLocalError(data["message"])

0 commit comments

Comments
 (0)