print login error if in debug mode
This commit is contained in:
parent
32ab890f5e
commit
3e9e53172f
1 changed files with 2 additions and 0 deletions
|
@ -297,6 +297,8 @@ class Client(object):
|
||||||
self.user = r['data']['user']
|
self.user = r['data']['user']
|
||||||
else:
|
else:
|
||||||
self.user = False
|
self.user = False
|
||||||
|
if DEBUG:
|
||||||
|
print r
|
||||||
print '\nlogin failed! check config\n\n'
|
print '\nlogin failed! check config\n\n'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
r = self.api.init()
|
r = self.api.init()
|
||||||
|
|
Loading…
Reference in a new issue