Skip to content

Commit

Permalink
doc clean up and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liampauling committed Nov 29, 2016
1 parent baaa91e commit ba4768a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions betfairlightweight/baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def __init__(self, username, password=None, app_key=None, certs=None, locale=Non
:param username:
Betfair username.
:param password:
Password for supplied username.
Password for supplied username, if None will look in .bashprofile.
:param app_key:
App Key for account, if None will look in .bashprofile
App Key for account, if None will look in .bashprofile.
:param certs:
Directory for certificates, if None will look in /certs/
:param locale:
Expand Down Expand Up @@ -68,7 +68,7 @@ def get_password(self):
variables for username+'password'
"""
if self.password is None:
if os.environ.get(self.username):
if os.environ.get(self.username+'password'):
self.password = os.environ.get(self.username+'password')
else:
raise PasswordError(self.username)
Expand Down

0 comments on commit ba4768a

Please sign in to comment.