mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01:00
Adding more verbose errors when login fails
This commit is contained in:
@@ -68,7 +68,7 @@ class GazelleAPI(object):
|
||||
'password': self.password}
|
||||
r = self.session.post(loginpage, data=data)
|
||||
if r.status_code != 200:
|
||||
raise LoginException
|
||||
raise LoginException("Login error, http code %s" % r.status_code)
|
||||
accountinfo = self.request('index')
|
||||
self.userid = accountinfo['id']
|
||||
self.authkey = accountinfo['authkey']
|
||||
|
||||
Reference in New Issue
Block a user