print login error if in debug mode

This commit is contained in:
j 2014-03-29 20:44:27 +01:00
parent 32ab890f5e
commit 3e9e53172f

View file

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