Skip to content

Commit

Permalink
Added debug output when empire returns non 200 status code while
Browse files Browse the repository at this point in the history
auth'ing
  • Loading branch information
byt3bl33d3r committed Aug 17, 2017
1 parent 89a2494 commit 913c2d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DeathStar.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def login(empire_username, empire_password):
token['token'] = r.json()['token']
else:
print_bad('I find your lack of faith disturbing... (Authentication Failed)')
if debug: print_debug('Status Code: {} Response: {}'.format(r.status_code, r.text))
sys.exit(1)
except ConnectionError:
print_bad('Connection Error. Check Empire RESTful API') # Connection refused
Expand Down

0 comments on commit 913c2d8

Please sign in to comment.