Update frappeclient.py
This commit is contained in:
parent
0e40b18ecc
commit
e41cde264d
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ class FrappeClient(object):
|
|||
self.session = requests.session()
|
||||
self.url = url
|
||||
|
||||
# for guest connection
|
||||
if username:
|
||||
# login if username/password provided
|
||||
if username and password:
|
||||
self._login(username, password)
|
||||
|
||||
def __enter__(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue