Browse Source

[minor] print output if login fails

version-14
Rushabh Mehta 8 years ago
parent
commit
13ac31a823
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/frappeclient.py

+ 1
- 0
frappe/frappeclient.py View File

@@ -37,6 +37,7 @@ class FrappeClient(object):
if r.status_code==200 and r.json().get('message') == "Logged In": if r.status_code==200 and r.json().get('message') == "Logged In":
return r.json() return r.json()
else: else:
print(r.text)
raise AuthError raise AuthError


def logout(self): def logout(self):


Loading…
Cancel
Save