Skip to content

Commit 1e44489

Browse files
tr4n2uilngsankha
authored andcommitted
fixed issue when key not in env (#14)
fixed issue when key not in env
1 parent d0a7775 commit 1e44489

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

browserstack/local.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from browserstack.bserrors import BrowserStackLocalError
44

55
class Local:
6-
def __init__(self, key=os.environ['BROWSERSTACK_ACCESS_KEY'], binary_path=None):
7-
self.key = key
6+
def __init__(self, key=None, binary_path=None):
7+
self.key = os.environ['BROWSERSTACK_ACCESS_KEY'] if 'BROWSERSTACK_ACCESS_KEY' in os.environ else key
88
self.options = None
99
self.local_logfile_path = os.path.join(os.getcwd(), 'local.log')
1010

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
setup(
33
name = 'browserstack-local',
44
packages = ['browserstack'],
5-
version = '1.0.0',
5+
version = '1.1.0',
66
description = 'Python bindings for Browserstack Local',
77
author = 'BrowserStack',
88
author_email = '[email protected]',

0 commit comments

Comments
 (0)