Update frappeclient.py

This commit is contained in:
Faris Ansari 2018-08-01 11:44:24 +05:30 committed by GitHub
parent 0e40b18ecc
commit e41cde264d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):