Skip to content

Commit

Permalink
Show raw JSON response again instead of stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammy committed Aug 5, 2019
1 parent 6337b83 commit 3bef79f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyinstalive/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import os.path
import sys
import traceback

try:
import logger
Expand Down Expand Up @@ -89,7 +90,7 @@ def authenticate(username, password, force_use_login_args=False):
if pil.verbose:
logger.plain(json.dumps(e.error_response))
logger.error('Could not login: {:s}'.format(e.error_response))
#logger.error('{:s}'.format(json.loads(e.error_response).get("message", e.error_response)))
# logger.error('{:s}'.format(json.loads(e.error_response).get("message", e.error_response)))
# logger.error('{:s}'.format(e.error_response))
logger.separator()
except Exception as e:
Expand Down

0 comments on commit 3bef79f

Please sign in to comment.